Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001548/0.001548, allocations: 196.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001/0.001, allocations: 89.23 kB / 292.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.431e-05/4.44e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4299/0.5399, allocations: 96.83 MB / 499 MB, free: 8.824 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/0.5403, allocations: 86.2 kB / 499 MB, free: 8.781 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.132/0.6724, allocations: 38.5 MB / 0.5249 GB, free: 3.477 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.6724, allocations: 0 / 0.5249 GB, free: 3.477 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.973e-05/0.6725, allocations: 31.94 kB / 0.525 GB, free: 3.445 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: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.00549/0.678, allocations: 1.628 MB / 0.5266 GB, free: 1.766 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.6781, allocations: 12.03 kB / 0.5266 GB, free: 1.754 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007719/0.6789, allocations: 223.1 kB / 0.5268 GB, free: 1.523 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003582/0.6825, allocations: 0.5402 MB / 0.5273 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.6843, allocations: 0.7543 MB / 0.5281 GB, free: 188 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001961/0.6845, allocations: 140.6 kB / 0.5282 GB, free: 40 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004674/0.685, allocations: 152 kB / 0.5283 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003312/0.6883, allocations: 1.261 MB / 0.5296 GB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.766e-05/0.6884, allocations: 3.984 kB / 0.5296 GB, free: 14.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.6886, allocations: 64 kB / 0.5296 GB, free: 14.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.71e-05/0.6887, allocations: 39.94 kB / 0.5297 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002716/0.6914, allocations: 1.175 MB / 0.5308 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.7027, allocations: 5.068 MB / 0.5358 GB, free: 8.035 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00283/0.7056, allocations: 1.867 MB / 0.5376 GB, free: 6.004 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009714/0.7066, allocations: 0.5238 MB / 0.5381 GB, free: 5.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/0.7069, allocations: 188.8 kB / 0.5383 GB, free: 5.262 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00127/0.7082, allocations: 0.6931 MB / 0.539 GB, free: 4.535 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 6.101e-06/0.7082, allocations: 3.938 kB / 0.539 GB, free: 4.531 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.01309/0.7213, allocations: 4.952 MB / 0.5438 GB, free: 15.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001921/0.7215, allocations: 230.9 kB / 0.544 GB, free: 15.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.7227, allocations: 0.5623 MB / 0.5446 GB, free: 14.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001461/0.7229, allocations: 57.7 kB / 0.5446 GB, free: 14.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008111/0.7237, allocations: 0.5779 MB / 0.5452 GB, free: 14.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006863/0.7244, allocations: 0.5313 MB / 0.5457 GB, free: 13.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.592e-05/0.7245, allocations: 36 kB / 0.5457 GB, free: 13.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003314/0.7248, allocations: 418.7 kB / 0.5461 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.7259, allocations: 456 kB / 0.5466 GB, free: 12.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.7272, allocations: 0.7952 MB / 0.5473 GB, free: 11.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.7283, allocations: 0.5561 MB / 0.5479 GB, free: 11.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.157e-05/0.7284, allocations: 7.953 kB / 0.5479 GB, free: 11.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004401/0.7328, allocations: 1.91 MB / 0.5498 GB, free: 9.168 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.7328, allocations: 15.95 kB / 0.5498 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.376e-05/0.7329, allocations: 13.41 kB / 0.5498 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/0.7345, allocations: 472.9 kB / 0.5502 GB, free: 8.668 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.7357, allocations: 287.5 kB / 0.5505 GB, free: 8.387 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01121/0.747, allocations: 8.586 MB / 0.5589 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.7485, allocations: 95.86 kB / 0.559 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002811/0.7488, allocations: 60 kB / 0.559 GB, free: 15.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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: 3 {(1,100.0%) 9,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005976/0.7494, allocations: 211.7 kB / 0.5592 GB, free: 14.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004154/0.7498, allocations: 110.7 kB / 0.5594 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004449/0.7543, allocations: 1.77 MB / 0.5611 GB, free: 13.01 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/0.7543, allocations: 16 kB / 0.5611 GB, free: 12.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.796e-05/0.7543, allocations: 11.95 kB / 0.5611 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.052e-05/0.7544, allocations: 7.969 kB / 0.5611 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006691/0.761, allocations: 3.575 MB / 0.5646 GB, free: 9.312 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.7611, allocations: 4 kB / 0.5646 GB, free: 9.309 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009848/0.7621, allocations: 207.8 kB / 0.5648 GB, free: 9.105 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/0.7636, allocations: 455 kB / 0.5652 GB, free: 8.648 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001384/0.7637, allocations: 39.97 kB / 0.5653 GB, free: 8.609 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3121/1.076, allocations: 8.315 MB / 0.5734 GB, free: 97.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/1.076, allocations: 5.359 kB / 0.5734 GB, free: 97.16 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005419/1.081, allocations: 2.505 MB / 0.5759 GB, free: 96.87 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006571/1.082, allocations: 300.1 kB / 0.5761 GB, free: 96.78 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/1.082, allocations: 34.11 kB / 0.5762 GB, free: 96.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007439/1.083, allocations: 66.59 kB / 0.5762 GB, free: 96.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003553/1.083, allocations: 133.2 kB / 0.5764 GB, free: 96.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.493e-05/1.083, allocations: 51.8 kB / 0.5764 GB, free: 96.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005669/1.084, allocations: 435 kB / 0.5768 GB, free: 96.67 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.084, allocations: 0 / 0.5768 GB, free: 96.67 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001669/1.086, allocations: 436 kB / 0.5772 GB, free: 96.67 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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: 3 {(1,100.0%) 9,(2,100.0%) 18,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.004969/1.091, allocations: 3.464 MB / 0.5806 GB, free: 95.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00327/1.094, allocations: 1.957 MB / 0.5825 GB, free: 95.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/1.094, allocations: 0 / 0.5825 GB, free: 95.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002125/1.096, allocations: 1.345 MB / 0.5839 GB, free: 94.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008924/1.097, allocations: 95.23 kB / 0.5839 GB, free: 94.58 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005363/1.102, allocations: 2.346 MB / 0.5862 GB, free: 93.98 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008713/1.103, allocations: 1.23 MB / 0.5874 GB, free: 93.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007951/1.104, allocations: 161 kB / 0.5876 GB, free: 93.26 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006182/1.105, allocations: 0.5246 MB / 0.5881 GB, free: 93.25 MB / 442.7 MB Notification: Performance of SimCode: time 1.794e-06/1.105, allocations: 0 / 0.5881 GB, free: 93.25 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0688/1.174, allocations: 27.25 MB / 0.6147 GB, free: 91.84 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/1.174, allocations: 201.5 kB / 0.6149 GB, free: 91.62 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.403/4.576, allocations: 4.031 kB / 0.6149 GB, free: 91.62 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat