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.002279/0.002278, allocations: 186 kB / 16.4 MB, free: 5.746 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.859/1.859, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001121/0.001121, allocations: 95.75 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003825, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3168, allocations: 47.56 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.4596, allocations: 90.82 MB / 465.5 MB, free: 5.805 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.4599, allocations: 87.95 kB / 465.5 MB, free: 5.719 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1211/0.581, allocations: 30.68 MB / 496.2 MB, free: 6.703 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.581, allocations: 0 / 496.2 MB, free: 6.703 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.213e-05/0.5811, allocations: 20 kB / 496.2 MB, free: 6.684 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.00516/0.5863, allocations: 1.297 MB / 497.5 MB, free: 5.332 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.5863, allocations: 12.03 kB / 497.6 MB, free: 5.32 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004631/0.5868, allocations: 171.6 kB / 497.7 MB, free: 5.141 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004576/0.5914, allocations: 474.2 kB / 498.2 MB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.5926, allocations: 0.4995 MB / 498.7 MB, free: 4.133 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.5928, allocations: 86.3 kB / 498.8 MB, free: 4.047 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002854/0.5931, allocations: 123.9 kB / 498.9 MB, free: 3.926 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003133/0.5962, allocations: 0.9989 MB / 499.9 MB, free: 2.898 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.966e-05/0.5963, allocations: 4 kB / 499.9 MB, free: 2.895 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/0.5965, allocations: 48 kB / 499.9 MB, free: 2.848 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.479e-05/0.5965, allocations: 27.98 kB / 500 MB, free: 2.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003378/0.5999, allocations: 1.044 MB / 0.4893 GB, free: 1.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2691/0.8691, allocations: 3.898 MB / 0.4931 GB, free: 92.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003151/0.8723, allocations: 2.056 MB / 0.4951 GB, free: 91.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001807/0.8725, allocations: 98.67 kB / 0.4952 GB, free: 91.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001303/0.8738, allocations: 481.5 kB / 0.4956 GB, free: 91.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 4.338e-06/0.8738, allocations: 1.5 kB / 0.4956 GB, free: 91.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.01431/0.8881, allocations: 3.955 MB / 0.4995 GB, free: 90.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.069e-05/0.8883, allocations: 142 kB / 0.4996 GB, free: 90.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006174/0.8889, allocations: 365 kB / 0.5 GB, free: 90.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.889, allocations: 53.36 kB / 0.5 GB, free: 89.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002985/0.8893, allocations: 488.7 kB / 0.5005 GB, free: 89.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003674/0.8897, allocations: 415.9 kB / 0.5009 GB, free: 89.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.8898, allocations: 26.56 kB / 0.5009 GB, free: 89.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.8899, allocations: 364 kB / 0.5013 GB, free: 89.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.8911, allocations: 354.6 kB / 0.5016 GB, free: 89.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.8924, allocations: 0.575 MB / 0.5022 GB, free: 88.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.8938, allocations: 444 kB / 0.5026 GB, free: 88.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.8938, allocations: 2.188 kB / 0.5026 GB, free: 88.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003885/0.8977, allocations: 1.395 MB / 0.504 GB, free: 88.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.8977, allocations: 7.719 kB / 0.504 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.8978, allocations: 2.875 kB / 0.504 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001402/0.8992, allocations: 351 kB / 0.5043 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001604/0.9008, allocations: 221 kB / 0.5045 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009259/0.9101, allocations: 7.795 MB / 0.5121 GB, free: 83.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00131/0.9114, allocations: 50.8 kB / 0.5122 GB, free: 83.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.9116, allocations: 51.58 kB / 0.5122 GB, free: 83.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked 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.000594/0.9122, allocations: 259.8 kB / 0.5125 GB, free: 83.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.9123, allocations: 70.19 kB / 0.5125 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003746/0.9161, allocations: 1.296 MB / 0.5138 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.9161, allocations: 11.75 kB / 0.5138 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.9161, allocations: 7.875 kB / 0.5138 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.9162, allocations: 11.59 kB / 0.5138 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005762/0.9219, allocations: 2.438 MB / 0.5162 GB, free: 81.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.922, allocations: 0 / 0.5162 GB, free: 81.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001281/0.9233, allocations: 152.5 kB / 0.5164 GB, free: 81.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001313/0.9246, allocations: 334.9 kB / 0.5167 GB, free: 81.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-05/0.9247, allocations: 23.53 kB / 0.5167 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008692/0.9334, allocations: 7.537 MB / 0.5241 GB, free: 74.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.9335, allocations: 7.312 kB / 0.5241 GB, free: 74.92 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004841/0.9383, allocations: 1.791 MB / 0.5258 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000465/0.9388, allocations: 219.6 kB / 0.526 GB, free: 73.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.939, allocations: 23.22 kB / 0.526 GB, free: 73.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008511/0.9398, allocations: 39.17 kB / 0.5261 GB, free: 73.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.9401, allocations: 101.5 kB / 0.5262 GB, free: 73.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.339e-05/0.9402, allocations: 33.59 kB / 0.5262 GB, free: 73.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003934/0.9406, allocations: 274.4 kB / 0.5265 GB, free: 73.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9406, allocations: 0 / 0.5265 GB, free: 73.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001592/0.9422, allocations: 329.9 kB / 0.5268 GB, free: 73.63 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * Number of clocked states: 0 () * 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,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005192/0.9474, allocations: 2.499 MB / 0.5292 GB, free: 72.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003819/0.9513, allocations: 1.639 MB / 0.5308 GB, free: 71.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.9513, allocations: 0 / 0.5308 GB, free: 71.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002387/0.9537, allocations: 1.159 MB / 0.532 GB, free: 70.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.9543, allocations: 59.5 kB / 0.532 GB, free: 70.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0098/0.9641, allocations: 7.198 MB / 0.539 GB, free: 64.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.9648, allocations: 1.046 MB / 0.5401 GB, free: 64.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008104/0.9656, allocations: 372.7 kB / 0.5404 GB, free: 63.74 MB / 378.7 MB Notification: Performance of SimCode: time 1.143e-06/0.9656, allocations: 0 / 0.5404 GB, free: 63.74 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.888/3.854, allocations: 28.86 MB / 0.5686 GB, free: 40.52 MB / 378.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