Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002407/0.002407, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.107/2.107, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001045/0.001045, allocations: 78.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.505e-05/3.524e-05, allocations: 7.984 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4574/0.5678, allocations: 90.73 MB / 459.9 MB, free: 2.234 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000316/0.5682, allocations: 81.45 kB / 460 MB, free: 2.195 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1246/0.6928, allocations: 30.61 MB / 490.6 MB, free: 5.262 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.6929, allocations: 0 / 490.6 MB, free: 5.262 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.647e-05/0.6929, allocations: 20 kB / 490.6 MB, free: 5.242 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.005418/0.6983, allocations: 1.247 MB / 491.9 MB, free: 3.945 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.6984, allocations: 8.031 kB / 491.9 MB, free: 3.938 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005819/0.699, allocations: 183.5 kB / 492.1 MB, free: 3.746 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004803/0.7038, allocations: 474.2 kB / 492.5 MB, free: 3.281 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.7053, allocations: 0.4919 MB / 493 MB, free: 2.742 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.7054, allocations: 86.3 kB / 493.1 MB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003069/0.7057, allocations: 119.9 kB / 493.2 MB, free: 2.539 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002984/0.7087, allocations: 0.9601 MB / 494.2 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.928e-05/0.7088, allocations: 0 / 494.2 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001789/0.709, allocations: 48 kB / 494.2 MB, free: 1.504 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.921e-05/0.709, allocations: 32 kB / 494.3 MB, free: 1.473 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003042/0.7121, allocations: 0.9697 MB / 495.2 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01073/0.7229, allocations: 3.907 MB / 499.1 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003541/0.7265, allocations: 2.023 MB / 0.4894 GB, free: 10.06 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.7278, allocations: 415.7 kB / 0.4898 GB, free: 9.652 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002157/0.728, allocations: 105.9 kB / 0.4899 GB, free: 9.531 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001154/0.7292, allocations: 461.6 kB / 0.4903 GB, free: 9.047 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 4.478e-06/0.7292, allocations: 0 / 0.4903 GB, free: 9.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.01287/0.7421, allocations: 3.508 MB / 0.4938 GB, free: 5.457 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/0.7423, allocations: 218.6 kB / 0.494 GB, free: 5.195 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007494/0.7431, allocations: 367 kB / 0.4943 GB, free: 4.832 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.7433, allocations: 45.7 kB / 0.4944 GB, free: 4.781 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004788/0.7438, allocations: 493.8 kB / 0.4948 GB, free: 4.293 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005234/0.7443, allocations: 410 kB / 0.4952 GB, free: 3.887 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.5e-05/0.7444, allocations: 28 kB / 0.4953 GB, free: 3.859 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.7446, allocations: 362.7 kB / 0.4956 GB, free: 3.496 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009787/0.7456, allocations: 318.6 kB / 0.4959 GB, free: 3.184 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.7469, allocations: 0.5665 MB / 0.4965 GB, free: 2.523 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.7481, allocations: 416.9 kB / 0.4969 GB, free: 2.125 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.7481, allocations: 4 kB / 0.4969 GB, free: 2.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003976/0.7521, allocations: 1.334 MB / 0.4982 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/0.7522, allocations: 8 kB / 0.4982 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.7522, allocations: 8 kB / 0.4982 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/0.7538, allocations: 351.9 kB / 0.4985 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/0.7557, allocations: 215.7 kB / 0.4987 GB, free: 188 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/0.768, allocations: 7.653 MB / 0.5062 GB, free: 7.992 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.7695, allocations: 55.89 kB / 0.5063 GB, free: 7.938 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/0.7696, allocations: 44 kB / 0.5063 GB, free: 7.895 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 115 * 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.0003561/0.77, allocations: 192.4 kB / 0.5065 GB, free: 7.699 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.7702, allocations: 71.34 kB / 0.5065 GB, free: 7.629 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003888/0.7741, allocations: 1.219 MB / 0.5077 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-05/0.7742, allocations: 12 kB / 0.5078 GB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.801e-05/0.7742, allocations: 11.98 kB / 0.5078 GB, free: 6.367 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-05/0.7743, allocations: 15.92 kB / 0.5078 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006793/0.7811, allocations: 2.642 MB / 0.5104 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.7811, allocations: 0 / 0.5104 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001388/0.7825, allocations: 147.8 kB / 0.5105 GB, free: 3.484 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001511/0.7841, allocations: 331.2 kB / 0.5108 GB, free: 3.148 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/0.7842, allocations: 24 kB / 0.5108 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/0.7956, allocations: 7.397 MB / 0.5181 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.7957, allocations: 3.984 kB / 0.5181 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005005/0.8007, allocations: 1.757 MB / 0.5198 GB, free: 9.375 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005809/0.8013, allocations: 220.2 kB / 0.52 GB, free: 9.141 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001611/0.8015, allocations: 24 kB / 0.52 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009146/0.8024, allocations: 39.97 kB / 0.5201 GB, free: 9.078 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003295/0.8028, allocations: 92.83 kB / 0.5201 GB, free: 8.984 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.8029, allocations: 35.98 kB / 0.5202 GB, free: 8.949 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005402/0.8034, allocations: 273.2 kB / 0.5204 GB, free: 8.688 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.8035, allocations: 0 / 0.5204 GB, free: 8.688 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001816/0.8053, allocations: 332 kB / 0.5208 GB, free: 8.363 MB / 410.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) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 79 * 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.005777/0.8111, allocations: 2.701 MB / 0.5234 GB, free: 5.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004102/0.8153, allocations: 1.552 MB / 0.5249 GB, free: 3.984 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.8153, allocations: 4.125 kB / 0.5249 GB, free: 3.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00276/0.8181, allocations: 1.121 MB / 0.526 GB, free: 2.809 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006622/0.8188, allocations: 50.09 kB / 0.5261 GB, free: 2.762 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009172/0.828, allocations: 2.228 MB / 0.5282 GB, free: 488 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2808/1.109, allocations: 1.043 MB / 0.5292 GB, free: 112.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/1.11, allocations: 365.3 kB / 0.5296 GB, free: 112.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.904e-06/1.11, allocations: 1.406 kB / 0.5296 GB, free: 112.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.069/4.179, allocations: 29.19 MB / 0.5581 GB, free: 109.7 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat