Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 174.7 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.454/1.454, allocations: 221.3 MB / 235.5 MB, free: 2.926 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.0009003/0.0009003, allocations: 96.94 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.535e-05/3.554e-05, allocations: 4 kB / 343.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 50.41 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4445/0.557, allocations: 95.9 MB / 490.2 MB, free: 7.527 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/0.5574, allocations: 87.95 kB / 490.3 MB, free: 7.441 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09164/0.6491, allocations: 37.17 MB / 0.5151 GB, free: 1.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.6491, allocations: 0 / 0.5151 GB, free: 1.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.647e-05/0.6492, allocations: 31.94 kB / 0.5152 GB, free: 1.879 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.004093/0.6533, allocations: 1.611 MB / 0.5167 GB, free: 216 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.6533, allocations: 8.031 kB / 0.5167 GB, free: 208 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003748/0.6537, allocations: 218.3 kB / 0.517 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002443/0.6562, allocations: 449.7 kB / 0.5174 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.6576, allocations: 0.7504 MB / 0.5181 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.6577, allocations: 144.6 kB / 0.5183 GB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002256/0.658, allocations: 151.9 kB / 0.5184 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.6604, allocations: 1.257 MB / 0.5196 GB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.881e-05/0.6605, allocations: 4 kB / 0.5196 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.6606, allocations: 60 kB / 0.5197 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.461e-05/0.6607, allocations: 39.98 kB / 0.5197 GB, free: 13.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002251/0.6629, allocations: 1.175 MB / 0.5209 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008809/0.6718, allocations: 4.954 MB / 0.5257 GB, free: 6.707 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002745/0.6745, allocations: 1.855 MB / 0.5275 GB, free: 4.688 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008757/0.6754, allocations: 0.5238 MB / 0.528 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001592/0.6756, allocations: 110.1 kB / 0.5281 GB, free: 4.035 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/0.6768, allocations: 0.6929 MB / 0.5288 GB, free: 3.309 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 4.228e-06/0.6768, allocations: 4 kB / 0.5288 GB, free: 3.305 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.01133/0.6881, allocations: 4.9 MB / 0.5336 GB, free: 14.33 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/0.6883, allocations: 234.9 kB / 0.5338 GB, free: 14.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007629/0.6891, allocations: 0.5386 MB / 0.5344 GB, free: 13.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.6892, allocations: 57.7 kB / 0.5344 GB, free: 13.44 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004917/0.6897, allocations: 0.5546 MB / 0.535 GB, free: 12.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004659/0.6902, allocations: 0.5352 MB / 0.5355 GB, free: 12.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.426e-05/0.6903, allocations: 32 kB / 0.5355 GB, free: 12.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002185/0.6905, allocations: 418.7 kB / 0.5359 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007826/0.6913, allocations: 448 kB / 0.5363 GB, free: 11.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.6923, allocations: 0.7835 MB / 0.5371 GB, free: 10.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009525/0.6933, allocations: 0.5625 MB / 0.5376 GB, free: 9.977 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.6933, allocations: 0 / 0.5376 GB, free: 9.977 MB / 426.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003836/0.6972, allocations: 1.895 MB / 0.5395 GB, free: 8.059 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.6972, allocations: 12 kB / 0.5395 GB, free: 8.047 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.6972, allocations: 8 kB / 0.5395 GB, free: 8.039 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/0.6987, allocations: 482.1 kB / 0.54 GB, free: 7.559 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.6999, allocations: 287.6 kB / 0.5403 GB, free: 7.277 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3152/1.015, allocations: 8.59 MB / 0.5486 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/1.017, allocations: 86.38 kB / 0.5487 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/1.017, allocations: 65.62 kB / 0.5488 GB, free: 108.9 MB / 426.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.0003829/1.017, allocations: 218.5 kB / 0.549 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/1.017, allocations: 110 kB / 0.5491 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/1.022, allocations: 1.756 MB / 0.5508 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.018e-05/1.022, allocations: 20.22 kB / 0.5508 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.486e-05/1.022, allocations: 8.594 kB / 0.5508 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.502e-05/1.022, allocations: 9.406 kB / 0.5508 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008176/1.03, allocations: 3.571 MB / 0.5543 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/1.03, allocations: 1.219 kB / 0.5543 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/1.031, allocations: 212.1 kB / 0.5545 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/1.033, allocations: 455.6 kB / 0.555 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/1.033, allocations: 41.77 kB / 0.555 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008929/1.042, allocations: 8.319 MB / 0.5631 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.042, allocations: 1.625 kB / 0.5631 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005293/1.047, allocations: 2.49 MB / 0.5656 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006321/1.048, allocations: 291.7 kB / 0.5658 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/1.048, allocations: 36.61 kB / 0.5659 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007601/1.049, allocations: 70.55 kB / 0.566 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004183/1.049, allocations: 133.2 kB / 0.5661 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/1.049, allocations: 53.83 kB / 0.5661 GB, free: 102.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006442/1.05, allocations: 410.9 kB / 0.5665 GB, free: 102.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.05, allocations: 4.188 kB / 0.5665 GB, free: 102.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00211/1.052, allocations: 427.5 kB / 0.5669 GB, free: 102.1 MB / 426.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.005693/1.058, allocations: 3.458 MB / 0.5703 GB, free: 101 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003776/1.062, allocations: 1.96 MB / 0.5722 GB, free: 100.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/1.062, allocations: 1.719 kB / 0.5722 GB, free: 100.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002228/1.064, allocations: 1.334 MB / 0.5735 GB, free: 99.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000765/1.065, allocations: 89.58 kB / 0.5736 GB, free: 99.35 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005643/1.07, allocations: 2.316 MB / 0.5759 GB, free: 98.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009555/1.071, allocations: 1.219 MB / 0.5771 GB, free: 97.61 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007614/1.072, allocations: 155.1 kB / 0.5772 GB, free: 97.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006245/1.073, allocations: 0.5113 MB / 0.5777 GB, free: 97.17 MB / 426.7 MB Notification: Performance of SimCode: time 3.667e-06/1.073, allocations: 4 kB / 0.5777 GB, free: 97.17 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04883/1.122, allocations: 26.74 MB / 0.6038 GB, free: 95.46 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/1.122, allocations: 210 kB / 0.604 GB, free: 95.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.189/4.311, allocations: 0 / 0.604 GB, free: 95.23 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat