Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008887/0.0008886, allocations: 84.7 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.476e-05/1.478e-05, allocations: 0 / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3731/0.4837, allocations: 92.45 MB / 480 MB, free: 2.227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.484, allocations: 88.5 kB / 480.1 MB, free: 2.141 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07023/0.5542, allocations: 29.87 MB / 0.498 GB, free: 3.938 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.103e-06/0.5543, allocations: 0 / 0.498 GB, free: 3.938 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.14e-05/0.5543, allocations: 24 kB / 0.498 GB, free: 3.914 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.002959/0.5573, allocations: 1.223 MB / 0.4992 GB, free: 2.645 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.5573, allocations: 8.031 kB / 0.4992 GB, free: 2.637 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002282/0.5596, allocations: 398.4 kB / 0.4996 GB, free: 2.246 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007106/0.5603, allocations: 495.6 kB / 0.5001 GB, free: 1.719 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.64e-05/0.5604, allocations: 40 kB / 0.5001 GB, free: 1.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.5605, allocations: 67.91 kB / 0.5002 GB, free: 1.613 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001431/0.562, allocations: 0.844 MB / 0.501 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.5634, allocations: 0.7555 MB / 0.5018 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.307e-05/0.5635, allocations: 4 kB / 0.5018 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.169e-05/0.5636, allocations: 0 / 0.5018 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.36e-05/0.5636, allocations: 24 kB / 0.5018 GB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006072/0.5697, allocations: 3.56 MB / 0.5053 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001855/0.5715, allocations: 1.473 MB / 0.5067 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005713/0.5721, allocations: 387.7 kB / 0.5071 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.5723, allocations: 101.9 kB / 0.5072 GB, free: 10.06 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000675/0.573, allocations: 424.1 kB / 0.5076 GB, free: 9.613 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 2.895e-06/0.573, allocations: 0 / 0.5076 GB, free: 9.613 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.006982/0.58, allocations: 3.385 MB / 0.5109 GB, free: 6.152 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/0.5801, allocations: 226.9 kB / 0.5111 GB, free: 5.883 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/0.5805, allocations: 310.1 kB / 0.5114 GB, free: 5.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.55e-05/0.5805, allocations: 25.7 kB / 0.5114 GB, free: 5.539 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/0.5808, allocations: 415.6 kB / 0.5118 GB, free: 5.125 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002952/0.5811, allocations: 398 kB / 0.5122 GB, free: 4.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.396e-05/0.5812, allocations: 4 kB / 0.5122 GB, free: 4.727 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.5814, allocations: 374.7 kB / 0.5126 GB, free: 4.352 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004632/0.5818, allocations: 286.6 kB / 0.5128 GB, free: 4.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006346/0.5825, allocations: 0.4931 MB / 0.5133 GB, free: 3.508 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.5836, allocations: 0.4997 MB / 0.5138 GB, free: 3.008 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.5836, allocations: 0 / 0.5138 GB, free: 3.008 MB / 394.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002418/0.586, allocations: 1.31 MB / 0.5151 GB, free: 1.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.586, allocations: 12 kB / 0.5151 GB, free: 1.668 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.5861, allocations: 4 kB / 0.5151 GB, free: 1.664 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008243/0.5869, allocations: 337.2 kB / 0.5154 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008263/0.5877, allocations: 203.7 kB / 0.5156 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008206/0.5959, allocations: 7.352 MB / 0.5228 GB, free: 9.312 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007223/0.5967, allocations: 32.05 kB / 0.5228 GB, free: 9.281 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.523e-05/0.5968, allocations: 43.98 kB / 0.5229 GB, free: 9.238 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002082/0.597, allocations: 124.9 kB / 0.523 GB, free: 9.109 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002256/0.5993, allocations: 1.139 MB / 0.5241 GB, free: 7.953 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.5994, allocations: 71.14 kB / 0.5242 GB, free: 7.883 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002421/0.6018, allocations: 1.222 MB / 0.5254 GB, free: 6.641 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.6018, allocations: 15.98 kB / 0.5254 GB, free: 6.625 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.6018, allocations: 8 kB / 0.5254 GB, free: 6.617 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.6019, allocations: 11.98 kB / 0.5254 GB, free: 6.605 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003881/0.6057, allocations: 2.491 MB / 0.5278 GB, free: 4.043 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.6058, allocations: 0 / 0.5278 GB, free: 4.043 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006754/0.6064, allocations: 155.8 kB / 0.528 GB, free: 3.891 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007523/0.6072, allocations: 305.5 kB / 0.5283 GB, free: 3.582 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.267e-05/0.6073, allocations: 12 kB / 0.5283 GB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006564/0.6138, allocations: 7.071 MB / 0.5352 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.6139, allocations: 3.984 kB / 0.5352 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003014/0.6169, allocations: 1.768 MB / 0.5369 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003192/0.6172, allocations: 220.1 kB / 0.5371 GB, free: 9.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.532e-05/0.6173, allocations: 4 kB / 0.5371 GB, free: 9.977 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004708/0.6178, allocations: 15.98 kB / 0.5371 GB, free: 9.961 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.618, allocations: 105.4 kB / 0.5372 GB, free: 9.859 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.978e-05/0.6181, allocations: 32 kB / 0.5373 GB, free: 9.828 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002757/0.6183, allocations: 228.6 kB / 0.5375 GB, free: 9.609 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6183, allocations: 3.938 kB / 0.5375 GB, free: 9.605 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001208/0.6196, allocations: 260 kB / 0.5377 GB, free: 9.352 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003599/0.6232, allocations: 2.656 MB / 0.5403 GB, free: 6.629 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002313/0.6255, allocations: 1.466 MB / 0.5418 GB, free: 5.113 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.6255, allocations: 0 / 0.5418 GB, free: 5.113 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.627, allocations: 1.033 MB / 0.5428 GB, free: 4.047 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004244/0.6274, allocations: 29.33 kB / 0.5428 GB, free: 4.012 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.6311, allocations: 1.509 MB / 0.5443 GB, free: 2.453 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006957/0.6319, allocations: 1.036 MB / 0.5453 GB, free: 1.387 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000518/0.6324, allocations: 97.92 kB / 0.5454 GB, free: 1.289 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004521/0.6328, allocations: 340.4 kB / 0.5457 GB, free: 0.957 MB / 426.7 MB Notification: Performance of SimCode: time 8.91e-07/0.6329, allocations: 3.938 kB / 0.5457 GB, free: 0.9531 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2837/0.9165, allocations: 15.67 MB / 0.561 GB, free: 117.9 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001624/0.9168, allocations: 168.8 kB / 0.5612 GB, free: 117.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.566/3.483, allocations: 0 / 0.5612 GB, free: 117.7 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat