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.001614/0.001614, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 221.3 MB / 235.5 MB, free: 2.973 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.0009606/0.0009604, allocations: 94.22 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.667e-05/3.669e-05, allocations: 0 / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1269, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4078/0.5348, allocations: 93.13 MB / 487.5 MB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.5351, allocations: 85.45 kB / 487.6 MB, free: 10.26 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0792/0.6143, allocations: 30.21 MB / 0.5056 GB, free: 11.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.6144, allocations: 0 / 0.5056 GB, free: 11.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.327e-05/0.6145, allocations: 16 kB / 0.5056 GB, free: 11.7 MB / 394.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.004433/0.6189, allocations: 1.235 MB / 0.5068 GB, free: 10.42 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.619, allocations: 12.02 kB / 0.5069 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005169/0.6195, allocations: 167.2 kB / 0.507 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002691/0.6222, allocations: 398.3 kB / 0.5074 GB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.6234, allocations: 495.6 kB / 0.5079 GB, free: 9.312 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.6235, allocations: 82.23 kB / 0.5079 GB, free: 9.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/0.6238, allocations: 115.9 kB / 0.5081 GB, free: 9.117 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002251/0.6261, allocations: 0.9241 MB / 0.509 GB, free: 8.164 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.532e-05/0.6261, allocations: 4 kB / 0.509 GB, free: 8.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.6262, allocations: 44 kB / 0.509 GB, free: 8.117 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.624e-05/0.6263, allocations: 32 kB / 0.509 GB, free: 8.086 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001857/0.6282, allocations: 0.9031 MB / 0.5099 GB, free: 7.176 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007081/0.6352, allocations: 3.745 MB / 0.5136 GB, free: 3.215 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.6371, allocations: 1.513 MB / 0.515 GB, free: 1.531 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006723/0.6378, allocations: 411.8 kB / 0.5154 GB, free: 1.129 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.638, allocations: 97.94 kB / 0.5155 GB, free: 1.016 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008021/0.6388, allocations: 465.6 kB / 0.516 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.699e-06/0.6388, allocations: 3.938 kB / 0.516 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.007859/0.6467, allocations: 3.464 MB / 0.5194 GB, free: 12.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.6468, allocations: 226.6 kB / 0.5196 GB, free: 12.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.6474, allocations: 354.7 kB / 0.5199 GB, free: 12.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.36e-05/0.6475, allocations: 45.7 kB / 0.52 GB, free: 12.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004061/0.6479, allocations: 419.6 kB / 0.5204 GB, free: 11.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003758/0.6483, allocations: 413.9 kB / 0.5208 GB, free: 11.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-05/0.6483, allocations: 28 kB / 0.5208 GB, free: 11.46 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.6485, allocations: 370.8 kB / 0.5211 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005941/0.6491, allocations: 322.6 kB / 0.5214 GB, free: 10.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007343/0.6499, allocations: 0.5187 MB / 0.522 GB, free: 10.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007619/0.6506, allocations: 398.2 kB / 0.5223 GB, free: 9.793 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.6507, allocations: 4 kB / 0.5223 GB, free: 9.789 MB / 410.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002476/0.6531, allocations: 1.298 MB / 0.5236 GB, free: 8.473 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.6532, allocations: 8 kB / 0.5236 GB, free: 8.465 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.6532, allocations: 4 kB / 0.5236 GB, free: 8.461 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009714/0.6542, allocations: 354.2 kB / 0.524 GB, free: 8.105 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000884/0.6551, allocations: 195.7 kB / 0.5241 GB, free: 7.914 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008202/0.6633, allocations: 7.648 MB / 0.5316 GB, free: 15.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009771/0.6643, allocations: 48.11 kB / 0.5317 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001893/0.6645, allocations: 52 kB / 0.5317 GB, free: 15.64 MB / 426.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,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003663/0.6649, allocations: 176.7 kB / 0.5319 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.6651, allocations: 71.16 kB / 0.5319 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002534/0.6677, allocations: 1.219 MB / 0.5331 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.6677, allocations: 12 kB / 0.5331 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.989e-05/0.6677, allocations: 8 kB / 0.5332 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.6677, allocations: 3.984 kB / 0.5332 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004654/0.6724, allocations: 2.605 MB / 0.5357 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/0.6725, allocations: 4 kB / 0.5357 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000707/0.6732, allocations: 139.8 kB / 0.5358 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009297/0.6741, allocations: 325.1 kB / 0.5361 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.584e-05/0.6742, allocations: 28 kB / 0.5362 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007785/0.682, allocations: 7.395 MB / 0.5434 GB, free: 3.023 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.6821, allocations: 8.156 kB / 0.5434 GB, free: 3.016 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003277/0.6854, allocations: 1.73 MB / 0.5451 GB, free: 1.223 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004546/0.6859, allocations: 228.2 kB / 0.5453 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.686, allocations: 20 kB / 0.5453 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006415/0.6867, allocations: 39.98 kB / 0.5454 GB, free: 0.9219 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.6869, allocations: 96.8 kB / 0.5455 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.202e-05/0.687, allocations: 32 kB / 0.5455 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003731/0.6874, allocations: 257.2 kB / 0.5457 GB, free: 0.543 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.344e-06/0.6874, allocations: 8 kB / 0.5457 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001506/0.6889, allocations: 335.9 kB / 0.5461 GB, free: 212 kB / 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.2978/0.9868, allocations: 2.662 MB / 0.5487 GB, free: 115 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003051/0.9899, allocations: 1.543 MB / 0.5502 GB, free: 114.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.9899, allocations: 0 / 0.5502 GB, free: 114.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.9917, allocations: 1.098 MB / 0.5512 GB, free: 114 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005771/0.9923, allocations: 55.81 kB / 0.5513 GB, free: 114 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004788/0.9972, allocations: 1.618 MB / 0.5529 GB, free: 113.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008887/0.9981, allocations: 1.041 MB / 0.5539 GB, free: 112.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006152/0.9987, allocations: 102.3 kB / 0.554 GB, free: 112.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000506/0.9992, allocations: 341.4 kB / 0.5543 GB, free: 112.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.352e-06/0.9992, allocations: 0 / 0.5543 GB, free: 112.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05229/1.052, allocations: 17.4 MB / 0.5713 GB, free: 112 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/1.052, allocations: 192.2 kB / 0.5715 GB, free: 111.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.737/3.789, allocations: 0 / 0.5715 GB, free: 111.8 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