Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00194/0.00194, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.845/1.845, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001161/0.001161, allocations: 86.36 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.634e-05/1.65e-05, allocations: 0 / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1158, allocations: 47.58 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3837/0.4995, allocations: 90.32 MB / 453.5 MB, free: 5.191 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.4999, allocations: 77.2 kB / 453.6 MB, free: 5.152 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08267/0.5825, allocations: 30.26 MB / 483.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5827, allocations: 0 / 483.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.926e-05/0.5827, allocations: 24 kB / 483.9 MB, free: 12.57 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.00382/0.5865, allocations: 1.247 MB / 485.1 MB, free: 11.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.5866, allocations: 12.03 kB / 485.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003273/0.5899, allocations: 462.3 kB / 485.6 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/0.5911, allocations: 0.4957 MB / 486.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-05/0.5912, allocations: 39.94 kB / 486.1 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.5914, allocations: 72 kB / 486.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001956/0.5933, allocations: 0.9106 MB / 487.1 MB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/0.595, allocations: 0.7837 MB / 487.9 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.715e-05/0.5951, allocations: 7.906 kB / 487.9 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.97e-05/0.5952, allocations: 0 / 487.9 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.987e-05/0.5953, allocations: 28 kB / 487.9 MB, free: 8.402 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007072/0.6023, allocations: 3.71 MB / 491.6 MB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002112/0.6045, allocations: 1.981 MB / 493.6 MB, free: 2.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006437/0.6052, allocations: 387.7 kB / 494 MB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001546/0.6053, allocations: 105.9 kB / 494.1 MB, free: 1.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007675/0.6061, allocations: 432.1 kB / 494.5 MB, free: 1.273 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 3.837e-06/0.6061, allocations: 0 / 494.5 MB, free: 1.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.008018/0.6142, allocations: 3.433 MB / 497.9 MB, free: 13.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.6143, allocations: 218.9 kB / 498.1 MB, free: 13.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004898/0.6148, allocations: 314.1 kB / 498.4 MB, free: 13.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.618e-05/0.6149, allocations: 41.69 kB / 498.5 MB, free: 13.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003972/0.6153, allocations: 435.4 kB / 498.9 MB, free: 12.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003952/0.6157, allocations: 397.9 kB / 499.3 MB, free: 12.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-05/0.6158, allocations: 4 kB / 499.3 MB, free: 12.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.616, allocations: 378.7 kB / 499.7 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005388/0.6165, allocations: 298.6 kB / 500 MB, free: 11.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007981/0.6173, allocations: 0.5251 MB / 0.4888 GB, free: 11.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.6186, allocations: 0.5151 MB / 0.4893 GB, free: 10.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.6186, allocations: 4 kB / 0.4893 GB, free: 10.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003023/0.6217, allocations: 1.361 MB / 0.4906 GB, free: 9.121 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.6217, allocations: 4 kB / 0.4906 GB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/0.6217, allocations: 15.95 kB / 0.4906 GB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009375/0.6227, allocations: 343.1 kB / 0.4909 GB, free: 8.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009151/0.6236, allocations: 211.7 kB / 0.4911 GB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008057/0.6317, allocations: 7.346 MB / 0.4983 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009397/0.6327, allocations: 31.91 kB / 0.4983 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.619e-05/0.6328, allocations: 52 kB / 0.4984 GB, free: 0.6484 MB / 378.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,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002992/0.6331, allocations: 124.8 kB / 0.4985 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00255/0.6356, allocations: 1.147 MB / 0.4996 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.6357, allocations: 75.19 kB / 0.4997 GB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002673/0.6384, allocations: 1.23 MB / 0.5009 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/0.6385, allocations: 19.95 kB / 0.5009 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.6385, allocations: 8 kB / 0.5009 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.6385, allocations: 3.984 kB / 0.5009 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004579/0.6431, allocations: 2.532 MB / 0.5034 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.6431, allocations: 4 kB / 0.5034 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007314/0.6439, allocations: 151.8 kB / 0.5036 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008493/0.6447, allocations: 311.2 kB / 0.5039 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.744e-05/0.6448, allocations: 11.98 kB / 0.5039 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00752/0.6523, allocations: 7.077 MB / 0.5108 GB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.6524, allocations: 0 / 0.5108 GB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003471/0.6558, allocations: 1.78 MB / 0.5125 GB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00043/0.6563, allocations: 216.3 kB / 0.5127 GB, free: 1.309 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.02e-05/0.6564, allocations: 4 kB / 0.5127 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.6569, allocations: 23.98 kB / 0.5127 GB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.6572, allocations: 101 kB / 0.5128 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6e-05/0.6572, allocations: 28 kB / 0.5129 GB, free: 1.156 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002983/0.6576, allocations: 236.6 kB / 0.5131 GB, free: 0.9297 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6576, allocations: 0 / 0.5131 GB, free: 0.9297 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001436/0.659, allocations: 275.9 kB / 0.5134 GB, free: 0.6602 MB / 394.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.004114/0.6631, allocations: 2.674 MB / 0.516 GB, free: 13.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002584/0.6658, allocations: 1.477 MB / 0.5174 GB, free: 12.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6658, allocations: 0 / 0.5174 GB, free: 12.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.6674, allocations: 1.041 MB / 0.5184 GB, free: 11.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.6679, allocations: 37.27 kB / 0.5185 GB, free: 11.28 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006574/0.6745, allocations: 2.079 MB / 0.5205 GB, free: 9.152 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007612/0.6753, allocations: 1.044 MB / 0.5215 GB, free: 8.078 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005503/0.6759, allocations: 102.1 kB / 0.5216 GB, free: 7.977 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005342/0.6764, allocations: 351.3 kB / 0.5219 GB, free: 7.633 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6764, allocations: 0 / 0.5219 GB, free: 7.633 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2765/0.9529, allocations: 15.94 MB / 0.5375 GB, free: 116 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.9532, allocations: 151.8 kB / 0.5377 GB, free: 115.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.562/3.515, allocations: 8 kB / 0.5377 GB, free: 115.8 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat