Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001082/0.001082, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.283/1.283, allocations: 205.4 MB / 223.1 MB, free: 9.023 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.0008409/0.0008408, allocations: 97.14 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002545, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2142, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.3212, allocations: 93.68 MB / 469.6 MB, free: 2.938 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.3215, allocations: 87.94 kB / 469.7 MB, free: 2.852 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2559/0.5774, allocations: 37.46 MB / 0.4953 GB, free: 91.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.5775, allocations: 0 / 0.4953 GB, free: 91.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.294e-05/0.5775, allocations: 30.91 kB / 0.4953 GB, free: 91.39 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.004189/0.5817, allocations: 1.706 MB / 0.497 GB, free: 90.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.5818, allocations: 13.67 kB / 0.497 GB, free: 90.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003488/0.5821, allocations: 220.5 kB / 0.4972 GB, free: 90.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00301/0.5852, allocations: 0.517 MB / 0.4977 GB, free: 90.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001399/0.5866, allocations: 0.7466 MB / 0.4984 GB, free: 90.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000162/0.5867, allocations: 151.7 kB / 0.4986 GB, free: 90.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002455/0.587, allocations: 156.5 kB / 0.4987 GB, free: 90.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002726/0.5897, allocations: 1.368 MB / 0.5 GB, free: 90.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.323e-05/0.5898, allocations: 6.75 kB / 0.5 GB, free: 90.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/0.5899, allocations: 62.84 kB / 0.5001 GB, free: 90.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.198e-05/0.59, allocations: 35.06 kB / 0.5001 GB, free: 90.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003018/0.593, allocations: 1.395 MB / 0.5015 GB, free: 90.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008138/0.6012, allocations: 5.084 MB / 0.5065 GB, free: 88.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002646/0.6039, allocations: 2.454 MB / 0.5089 GB, free: 87.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.604, allocations: 110.2 kB / 0.509 GB, free: 86.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001236/0.6053, allocations: 0.7543 MB / 0.5097 GB, free: 86.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.767e-06/0.6053, allocations: 0 / 0.5097 GB, free: 86.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.01393/0.6192, allocations: 5.657 MB / 0.5152 GB, free: 85.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/0.6193, allocations: 158.9 kB / 0.5154 GB, free: 85.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006529/0.62, allocations: 0.5527 MB / 0.5159 GB, free: 84.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001149/0.6201, allocations: 60.59 kB / 0.516 GB, free: 84.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004031/0.6205, allocations: 0.5743 MB / 0.5165 GB, free: 84.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003876/0.6209, allocations: 0.5392 MB / 0.5171 GB, free: 83.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.373e-05/0.621, allocations: 35.41 kB / 0.5171 GB, free: 83.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.6212, allocations: 414.8 kB / 0.5175 GB, free: 83.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009548/0.6221, allocations: 0.5259 MB / 0.518 GB, free: 83.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.6233, allocations: 0.8819 MB / 0.5189 GB, free: 82.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.6244, allocations: 0.6439 MB / 0.5195 GB, free: 82.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.6244, allocations: 3.969 kB / 0.5195 GB, free: 82.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004041/0.6284, allocations: 2.085 MB / 0.5215 GB, free: 81.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.406e-05/0.6285, allocations: 12.31 kB / 0.5215 GB, free: 81.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/0.6285, allocations: 7.188 kB / 0.5216 GB, free: 81.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001965/0.6305, allocations: 0.5335 MB / 0.5221 GB, free: 81.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.6318, allocations: 296 kB / 0.5224 GB, free: 81.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007731/0.6395, allocations: 8.758 MB / 0.5309 GB, free: 74.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00131/0.6409, allocations: 80.36 kB / 0.531 GB, free: 74.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.641, allocations: 70.92 kB / 0.5311 GB, free: 74.29 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.0006958/0.6417, allocations: 360.7 kB / 0.5314 GB, free: 74.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.6419, allocations: 112.2 kB / 0.5315 GB, free: 73.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00388/0.6458, allocations: 1.919 MB / 0.5334 GB, free: 73.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.6458, allocations: 21.34 kB / 0.5334 GB, free: 73.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.6458, allocations: 9.875 kB / 0.5334 GB, free: 73.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.6458, allocations: 7.688 kB / 0.5334 GB, free: 73.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005659/0.6515, allocations: 3.426 MB / 0.5368 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.6516, allocations: 3.219 kB / 0.5368 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00096/0.6525, allocations: 211.3 kB / 0.537 GB, free: 71.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001901/0.6544, allocations: 0.5037 MB / 0.5375 GB, free: 71.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.6546, allocations: 41.95 kB / 0.5375 GB, free: 71.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007267/0.6618, allocations: 8.472 MB / 0.5458 GB, free: 62.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.6619, allocations: 0 / 0.5458 GB, free: 62.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005039/0.6669, allocations: 2.679 MB / 0.5484 GB, free: 60.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005727/0.6675, allocations: 298.7 kB / 0.5487 GB, free: 59.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002516/0.6678, allocations: 32 kB / 0.5487 GB, free: 59.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008807/0.6687, allocations: 73.97 kB / 0.5488 GB, free: 59.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002925/0.669, allocations: 122.9 kB / 0.5489 GB, free: 59.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.473e-05/0.6691, allocations: 54.5 kB / 0.5489 GB, free: 59.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005389/0.6697, allocations: 428.5 kB / 0.5494 GB, free: 59.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6697, allocations: 4 kB / 0.5494 GB, free: 59.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002012/0.6717, allocations: 435.6 kB / 0.5498 GB, free: 58.93 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.005683/0.6774, allocations: 3.407 MB / 0.5531 GB, free: 55.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00355/0.681, allocations: 2.137 MB / 0.5552 GB, free: 53.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.681, allocations: 0 / 0.5552 GB, free: 53.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/0.6833, allocations: 1.429 MB / 0.5566 GB, free: 52.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000943/0.6843, allocations: 89.73 kB / 0.5567 GB, free: 52.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009643/0.6939, allocations: 11.13 MB / 0.5675 GB, free: 41.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006766/0.6946, allocations: 1.22 MB / 0.5687 GB, free: 40.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007775/0.6954, allocations: 160.3 kB / 0.5689 GB, free: 40.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005411/0.696, allocations: 0.5182 MB / 0.5694 GB, free: 39.88 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.696, allocations: 0 / 0.5694 GB, free: 39.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0404/0.7364, allocations: 26.16 MB / 0.5949 GB, free: 15.17 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/0.7366, allocations: 239.1 kB / 0.5952 GB, free: 14.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.755/3.492, allocations: 8 kB / 0.5952 GB, free: 14.91 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat