Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001493/0.001493, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.838/1.838, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 88.53 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003647, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3149, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.4596, allocations: 93.68 MB / 468.3 MB, free: 3.031 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.4599, allocations: 87.95 kB / 468.4 MB, free: 2.945 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4226/0.8825, allocations: 37.46 MB / 0.494 GB, free: 91.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.8826, allocations: 1.125 kB / 0.494 GB, free: 91.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.095e-05/0.8826, allocations: 30.34 kB / 0.494 GB, free: 91.07 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.006704/0.8894, allocations: 1.712 MB / 0.4957 GB, free: 90.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.8894, allocations: 9.125 kB / 0.4957 GB, free: 90.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006798/0.8901, allocations: 220.2 kB / 0.4959 GB, free: 90.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004903/0.895, allocations: 0.5156 MB / 0.4964 GB, free: 90.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.8972, allocations: 0.7558 MB / 0.4972 GB, free: 89.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.8974, allocations: 149.2 kB / 0.4973 GB, free: 89.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003858/0.8978, allocations: 154.7 kB / 0.4975 GB, free: 89.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004399/0.9022, allocations: 1.37 MB / 0.4988 GB, free: 89.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.558e-05/0.9024, allocations: 5.844 kB / 0.4988 GB, free: 89.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002153/0.9026, allocations: 66.59 kB / 0.4989 GB, free: 89.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.597e-05/0.9026, allocations: 34.16 kB / 0.4989 GB, free: 89.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00499/0.9076, allocations: 1.389 MB / 0.5003 GB, free: 89.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01315/0.9208, allocations: 5.086 MB / 0.5052 GB, free: 88.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004663/0.9255, allocations: 2.45 MB / 0.5076 GB, free: 86.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002122/0.9258, allocations: 105 kB / 0.5077 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002136/0.928, allocations: 0.7636 MB / 0.5085 GB, free: 86.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 4.879e-06/0.928, allocations: 0 / 0.5085 GB, free: 86.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.02347/0.9515, allocations: 5.661 MB / 0.514 GB, free: 84.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.52e-05/0.9516, allocations: 152.1 kB / 0.5141 GB, free: 84.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009329/0.9525, allocations: 0.5599 MB / 0.5147 GB, free: 84.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001812/0.9527, allocations: 57.14 kB / 0.5147 GB, free: 84.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004013/0.9531, allocations: 0.5983 MB / 0.5153 GB, free: 83.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004537/0.9536, allocations: 0.5408 MB / 0.5158 GB, free: 83.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.9538, allocations: 35.53 kB / 0.5159 GB, free: 83.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.9539, allocations: 372.7 kB / 0.5162 GB, free: 83.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001766/0.9556, allocations: 0.5263 MB / 0.5168 GB, free: 82.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001954/0.9576, allocations: 0.8841 MB / 0.5176 GB, free: 82.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.9596, allocations: 0.6411 MB / 0.5182 GB, free: 82.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.9596, allocations: 7.75 kB / 0.5182 GB, free: 82.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.006851/0.9665, allocations: 2.048 MB / 0.5202 GB, free: 81.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.9665, allocations: 7.094 kB / 0.5203 GB, free: 81.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/0.9666, allocations: 13.12 kB / 0.5203 GB, free: 81.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003374/0.9699, allocations: 0.53 MB / 0.5208 GB, free: 81.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002192/0.9722, allocations: 300.2 kB / 0.5211 GB, free: 81.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.013/0.9852, allocations: 8.767 MB / 0.5296 GB, free: 74.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/0.9871, allocations: 82.72 kB / 0.5297 GB, free: 74.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/0.9873, allocations: 65.44 kB / 0.5298 GB, free: 74 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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.0008872/0.9882, allocations: 358.5 kB / 0.5301 GB, free: 73.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002463/0.9884, allocations: 111.5 kB / 0.5302 GB, free: 73.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007159/0.9956, allocations: 1.915 MB / 0.5321 GB, free: 72.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/0.9957, allocations: 16.44 kB / 0.5321 GB, free: 72.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.9957, allocations: 9.719 kB / 0.5321 GB, free: 72.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-05/0.9957, allocations: 11.64 kB / 0.5321 GB, free: 72.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009715/1.005, allocations: 3.432 MB / 0.5355 GB, free: 71.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/1.005, allocations: 3.469 kB / 0.5355 GB, free: 71.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/1.007, allocations: 214.3 kB / 0.5357 GB, free: 71.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003384/1.011, allocations: 0.4972 MB / 0.5362 GB, free: 71.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002634/1.011, allocations: 40.77 kB / 0.5362 GB, free: 71.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/1.023, allocations: 8.479 MB / 0.5445 GB, free: 62.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.024, allocations: 4.031 kB / 0.5445 GB, free: 62.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008901/1.032, allocations: 2.679 MB / 0.5471 GB, free: 60.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007683/1.033, allocations: 299.7 kB / 0.5474 GB, free: 60.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/1.034, allocations: 32 kB / 0.5474 GB, free: 59.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/1.035, allocations: 70.12 kB / 0.5475 GB, free: 59.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003769/1.035, allocations: 127.8 kB / 0.5476 GB, free: 59.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/1.035, allocations: 47.03 kB / 0.5477 GB, free: 59.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006939/1.036, allocations: 427.2 kB / 0.5481 GB, free: 59.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/1.036, allocations: 0 / 0.5481 GB, free: 59.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002141/1.038, allocations: 439.6 kB / 0.5485 GB, free: 59.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 105 * 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,(1,100.0%) 17} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.009194/1.047, allocations: 3.4 MB / 0.5518 GB, free: 55.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005509/1.053, allocations: 2.137 MB / 0.5539 GB, free: 53.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/1.053, allocations: 9.031 kB / 0.5539 GB, free: 53.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003329/1.056, allocations: 1.427 MB / 0.5553 GB, free: 52.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009035/1.057, allocations: 95.64 kB / 0.5554 GB, free: 52.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01282/1.07, allocations: 11.17 MB / 0.5663 GB, free: 41.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007977/1.071, allocations: 1.221 MB / 0.5675 GB, free: 40.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001202/1.072, allocations: 0.5375 MB / 0.568 GB, free: 40.01 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/1.072, allocations: 0 / 0.568 GB, free: 40.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.019/4.092, allocations: 42.56 MB / 0.6096 GB, free: 14.94 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat