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.002304/0.002304, allocations: 180.1 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.144/2.144, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 87.42 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.88e-05/1.891e-05, allocations: 0 / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3474, allocations: 47.57 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1474/0.4949, allocations: 90.07 MB / 452.5 MB, free: 12.11 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/0.4952, allocations: 81.33 kB / 452.6 MB, free: 12.04 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1227/0.618, allocations: 30.27 MB / 482.9 MB, free: 13.52 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6181, allocations: 0 / 482.9 MB, free: 13.52 MB / 379.1 MB Notification: Performance of Transformations before backend: time 4.476e-05/0.6181, allocations: 20 kB / 482.9 MB, free: 13.5 MB / 379.1 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.005217/0.6233, allocations: 1.245 MB / 484.1 MB, free: 12.21 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.6234, allocations: 8.031 kB / 484.1 MB, free: 12.2 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004693/0.6281, allocations: 474.3 kB / 484.6 MB, free: 11.73 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.6296, allocations: 0.4996 MB / 485.1 MB, free: 11.19 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.085e-05/0.6297, allocations: 36 kB / 485.1 MB, free: 11.15 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002445/0.63, allocations: 68 kB / 485.2 MB, free: 11.09 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002871/0.6328, allocations: 0.9106 MB / 486.1 MB, free: 10.17 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002484/0.6354, allocations: 0.7798 MB / 486.9 MB, free: 9.367 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.339e-05/0.6355, allocations: 3.906 kB / 486.9 MB, free: 9.363 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/0.6356, allocations: 3.984 kB / 486.9 MB, free: 9.359 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.769e-05/0.6357, allocations: 29.03 kB / 486.9 MB, free: 9.332 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01056/0.6462, allocations: 3.713 MB / 490.6 MB, free: 5.41 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003279/0.6496, allocations: 1.977 MB / 492.6 MB, free: 3.164 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/0.6508, allocations: 391.8 kB / 493 MB, free: 2.781 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002001/0.6511, allocations: 101.8 kB / 493.1 MB, free: 2.664 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0011/0.6522, allocations: 424.1 kB / 493.5 MB, free: 2.215 MB / 379.1 MB Notification: Performance of pre-optimization done (n=98): time 4.128e-06/0.6522, allocations: 8 kB / 493.5 MB, free: 2.207 MB / 379.1 MB Notification: Performance of matching and sorting (n=124): time 0.01293/0.6651, allocations: 3.427 MB / 496.9 MB, free: 14.71 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/0.6653, allocations: 226.9 kB / 497.2 MB, free: 14.44 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006426/0.666, allocations: 318.1 kB / 497.5 MB, free: 14.11 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.6662, allocations: 25.7 kB / 497.5 MB, free: 14.08 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004983/0.6667, allocations: 494.7 kB / 498 MB, free: 13.59 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000548/0.6673, allocations: 401.9 kB / 498.4 MB, free: 13.2 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.532e-05/0.6674, allocations: 0 / 498.4 MB, free: 13.2 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.6676, allocations: 354.8 kB / 498.7 MB, free: 12.84 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000872/0.6685, allocations: 302.6 kB / 499 MB, free: 12.55 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.6696, allocations: 0.5251 MB / 499.5 MB, free: 11.93 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002153/0.6718, allocations: 0.5189 MB / 0.4883 GB, free: 11.41 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.434e-05/0.6718, allocations: 4 kB / 0.4883 GB, free: 11.41 MB / 395.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004745/0.6766, allocations: 1.341 MB / 0.4897 GB, free: 10.05 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.501e-05/0.6767, allocations: 11.98 kB / 0.4897 GB, free: 10.04 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.32e-05/0.6767, allocations: 8.797 kB / 0.4897 GB, free: 10.03 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/0.6782, allocations: 339.2 kB / 0.49 GB, free: 9.684 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/0.68, allocations: 215.6 kB / 0.4902 GB, free: 9.473 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01141/0.6915, allocations: 7.352 MB / 0.4974 GB, free: 1.656 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001309/0.6928, allocations: 27.92 kB / 0.4974 GB, free: 1.629 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.693, allocations: 51.98 kB / 0.4975 GB, free: 1.578 MB / 395.1 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,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002966/0.6933, allocations: 128.7 kB / 0.4976 GB, free: 1.445 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004/0.6973, allocations: 1.147 MB / 0.4987 GB, free: 288 kB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/0.6976, allocations: 75.11 kB / 0.4988 GB, free: 212 kB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2689/0.9666, allocations: 1.227 MB / 0.5 GB, free: 107.3 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.831e-05/0.9667, allocations: 12.88 kB / 0.5 GB, free: 107.3 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-05/0.9667, allocations: 8.531 kB / 0.5 GB, free: 107.3 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-05/0.9667, allocations: 6.984 kB / 0.5 GB, free: 107.3 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007004/0.9737, allocations: 2.529 MB / 0.5025 GB, free: 106.7 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.9738, allocations: 4.609 kB / 0.5025 GB, free: 106.7 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/0.9752, allocations: 148.1 kB / 0.5026 GB, free: 106.7 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001465/0.9767, allocations: 311.3 kB / 0.5029 GB, free: 106.6 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000172/0.9769, allocations: 9.391 kB / 0.5029 GB, free: 106.6 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009305/0.9862, allocations: 7.092 MB / 0.5098 GB, free: 101.7 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/0.9863, allocations: 1.375 kB / 0.5098 GB, free: 101.7 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005136/0.9915, allocations: 1.774 MB / 0.5116 GB, free: 101.4 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005429/0.9921, allocations: 220.8 kB / 0.5118 GB, free: 101.3 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.9922, allocations: 5.219 kB / 0.5118 GB, free: 101.3 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008796/0.9931, allocations: 17.98 kB / 0.5118 GB, free: 101.3 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003521/0.9935, allocations: 100 kB / 0.5119 GB, free: 101.3 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.9936, allocations: 35.2 kB / 0.5119 GB, free: 101.3 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0004009/0.994, allocations: 233.9 kB / 0.5122 GB, free: 101.2 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.994, allocations: 0 / 0.5122 GB, free: 101.2 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001998/0.996, allocations: 270.3 kB / 0.5124 GB, free: 101.2 MB / 395.1 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.005694/1.002, allocations: 2.674 MB / 0.515 GB, free: 100 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003579/1.005, allocations: 1.469 MB / 0.5165 GB, free: 99.57 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.005, allocations: 0 / 0.5165 GB, free: 99.57 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002529/1.008, allocations: 1.055 MB / 0.5175 GB, free: 99.12 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006801/1.009, allocations: 28.42 kB / 0.5175 GB, free: 99.11 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008851/1.018, allocations: 2.11 MB / 0.5196 GB, free: 98.63 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007553/1.018, allocations: 1.042 MB / 0.5206 GB, free: 97.92 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008164/1.019, allocations: 367.3 kB / 0.521 GB, free: 97.91 MB / 395.1 MB Notification: Performance of SimCode: time 1.072e-06/1.019, allocations: 0 / 0.521 GB, free: 97.91 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.041/4.06, allocations: 28.98 MB / 0.5493 GB, free: 89.03 MB / 395.1 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