Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo", uses=false) Using package FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ShowSoftMagneticCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ShowSoftMagneticCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009782/0.0009783, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.23/1.23, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.01318/0.01318, allocations: 1.224 MB / 292.2 MB, free: 1.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002706/0.0002707, allocations: 8 kB / 353.4 MB, free: 2.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2154, allocations: 50.68 MB / 404.1 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic): time 0.00136/0.2168, allocations: 1.209 MB / 405.3 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.2181, allocations: 1.131 MB / 406.5 MB, free: 9.109 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.166e-05/0.2181, allocations: 1.375 kB / 406.5 MB, free: 9.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003067/0.2185, allocations: 101.2 kB / 406.6 MB, free: 9.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000403/0.2189, allocations: 174.9 kB / 406.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.378e-06/0.2189, allocations: 0 / 406.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.6e-05/0.219, allocations: 69.12 kB / 406.8 MB, free: 9.008 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.315e-05/0.219, allocations: 7.328 kB / 406.8 MB, free: 9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.746e-05/0.2191, allocations: 46.66 kB / 406.9 MB, free: 8.984 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.2192, allocations: 57.22 kB / 406.9 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.2193, allocations: 4.125 kB / 406.9 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003769/0.2197, allocations: 258.6 kB / 407.2 MB, free: 8.898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.364e-05/0.2197, allocations: 34.67 kB / 407.2 MB, free: 8.887 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.2197, allocations: 40.58 kB / 407.2 MB, free: 8.848 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.22, allocations: 192.1 kB / 407.4 MB, free: 8.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.22, allocations: 0 / 407.4 MB, free: 8.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.22, allocations: 0 / 407.4 MB, free: 8.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.437e-06/0.22, allocations: 1.031 kB / 407.4 MB, free: 8.82 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004376/0.2205, allocations: 481.2 kB / 407.9 MB, free: 8.367 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.2205, allocations: 9.75 kB / 407.9 MB, free: 8.367 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.719e-05/0.2205, allocations: 32.61 kB / 407.9 MB, free: 8.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.011e-05/0.2206, allocations: 15.5 kB / 408 MB, free: 8.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001925/0.2208, allocations: 231.9 kB / 408.2 MB, free: 8.098 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.2208, allocations: 2.031 kB / 408.2 MB, free: 8.098 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.2208, allocations: 2.125 kB / 408.2 MB, free: 8.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001416/0.221, allocations: 106.1 kB / 408.3 MB, free: 8.047 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.221, allocations: 0.6562 kB / 408.3 MB, free: 8.047 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.221, allocations: 15.52 kB / 408.3 MB, free: 8.035 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.221, allocations: 1.281 kB / 408.3 MB, free: 8.035 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001632/0.2212, allocations: 146.5 kB / 408.4 MB, free: 8.012 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002098/0.2214, allocations: 254.6 kB / 408.7 MB, free: 7.801 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.2216, allocations: 157.4 kB / 408.9 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.125e-05/0.2216, allocations: 33.78 kB / 408.9 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.436e-05/0.2216, allocations: 39.56 kB / 408.9 MB, free: 7.699 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.2217, allocations: 1.031 kB / 408.9 MB, free: 7.699 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.001533/0.2232, allocations: 438.8 kB / 409.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.825e-05/0.2232, allocations: 53.89 kB / 409.4 MB, free: 7.441 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.2234, allocations: 215.4 kB / 409.6 MB, free: 7.305 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.038e-05/0.2234, allocations: 26.61 kB / 409.6 MB, free: 7.273 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.024e-05/0.2235, allocations: 115.6 kB / 409.8 MB, free: 7.168 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.2235, allocations: 30.61 kB / 409.8 MB, free: 7.145 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-06/0.2235, allocations: 0 / 409.8 MB, free: 7.145 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.425e-05/0.2236, allocations: 332.3 kB / 410.1 MB, free: 6.82 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.902e-05/0.2236, allocations: 61.08 kB / 410.2 MB, free: 6.809 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.728e-05/0.2237, allocations: 60.89 kB / 410.2 MB, free: 6.797 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.459e-05/0.2238, allocations: 62.02 kB / 410.3 MB, free: 6.785 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2238, allocations: 0 / 410.3 MB, free: 6.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006839/0.2245, allocations: 241.3 kB / 410.5 MB, free: 6.699 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.2245, allocations: 8.516 kB / 410.5 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2245, allocations: 1.562 kB / 410.5 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006439/0.2252, allocations: 69.52 kB / 410.6 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.139e-05/0.2252, allocations: 17.06 kB / 410.6 MB, free: 6.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.2268, allocations: 1.448 MB / 412.1 MB, free: 5.316 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.85e-05/0.2268, allocations: 2.5 kB / 412.1 MB, free: 5.316 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.2269, allocations: 5.906 kB / 412.1 MB, free: 5.316 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 6.968e-05/0.2269, allocations: 125.9 kB / 412.2 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.227, allocations: 23.23 kB / 412.2 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007744/0.2277, allocations: 271.8 kB / 412.5 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2277, allocations: 2.125 kB / 412.5 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.2278, allocations: 0.7969 kB / 412.5 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2278, allocations: 5.438 kB / 412.5 MB, free: 5.078 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001688/0.2279, allocations: 257.8 kB / 412.7 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.2279, allocations: 4.562 kB / 412.7 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.493e-05/0.228, allocations: 12.41 kB / 412.8 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005985/0.2286, allocations: 70.44 kB / 412.8 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.2286, allocations: 5.797 kB / 412.8 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001373/0.23, allocations: 1.447 MB / 414.3 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.23, allocations: 0.7031 kB / 414.3 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007052/0.2307, allocations: 266.5 kB / 414.5 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.78e-05/0.2308, allocations: 99.31 kB / 414.6 MB, free: 3.262 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.2308, allocations: 5.969 kB / 414.6 MB, free: 3.258 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.961e-05/0.2309, allocations: 1.062 kB / 414.6 MB, free: 3.258 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.858e-05/0.2309, allocations: 9.953 kB / 414.7 MB, free: 3.258 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.435e-06/0.2309, allocations: 7.688 kB / 414.7 MB, free: 3.254 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001143/0.231, allocations: 167.2 kB / 414.8 MB, free: 3.148 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.231, allocations: 0.9688 kB / 414.8 MB, free: 3.148 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.2314, allocations: 80.34 kB / 414.9 MB, free: 3.129 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009389/0.2323, allocations: 0.8453 MB / 415.8 MB, free: 2.461 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004496/0.2328, allocations: 267 kB / 416 MB, free: 2.32 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2328, allocations: 1.719 kB / 416 MB, free: 2.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003098/0.2331, allocations: 207 kB / 416.2 MB, free: 2.188 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001879/0.2333, allocations: 19.94 kB / 416.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004637/0.2379, allocations: 1.46 MB / 417.7 MB, free: 1.527 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.2381, allocations: 0.7204 MB / 418.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.912e-05/0.2382, allocations: 18.19 kB / 418.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.353e-05/0.2382, allocations: 43.5 kB / 418.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2382, allocations: 0 / 418.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01529/0.2535, allocations: 4.781 MB / 423.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/0.2537, allocations: 218.4 kB / 423.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/1.827, allocations: 0 / 423.5 MB, free: 15.43 MB / 302.1 MB (rm -f FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_ShowSoftMagneticCharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_ShowSoftMagneticCharacteristic.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.pipe 2>&1) Environment - environmentSimulation: