Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001534/0.001534, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.594/1.594, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 91.77 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.347e-05/2.37e-05, allocations: 0 / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1234, allocations: 51.48 MB / 395.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3985/0.522, allocations: 93.4 MB / 488.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.5223, allocations: 80.17 kB / 488.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08626/0.6086, allocations: 31.22 MB / 0.5078 GB, free: 5.305 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.6086, allocations: 0 / 0.5078 GB, free: 5.305 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.811e-05/0.6087, allocations: 20 kB / 0.5078 GB, free: 5.285 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004524/0.6133, allocations: 1.246 MB / 0.509 GB, free: 3.996 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.6133, allocations: 12.03 kB / 0.509 GB, free: 3.984 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00306/0.6164, allocations: 406.3 kB / 0.5094 GB, free: 3.586 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.6178, allocations: 0.4922 MB / 0.5099 GB, free: 3.055 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.253e-05/0.6179, allocations: 36 kB / 0.5099 GB, free: 3.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000426/0.6184, allocations: 64 kB / 0.51 GB, free: 2.957 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002364/0.6207, allocations: 0.8518 MB / 0.5108 GB, free: 2.102 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.6228, allocations: 0.7572 MB / 0.5116 GB, free: 1.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.571e-05/0.6229, allocations: 3.906 kB / 0.5116 GB, free: 1.316 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/0.6231, allocations: 0 / 0.5116 GB, free: 1.316 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.847e-05/0.6231, allocations: 28 kB / 0.5116 GB, free: 1.289 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007843/0.6309, allocations: 3.631 MB / 0.5151 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.6329, allocations: 1.466 MB / 0.5166 GB, free: 11.81 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006599/0.6336, allocations: 383.7 kB / 0.5169 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002243/0.6338, allocations: 183 kB / 0.5171 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008132/0.6347, allocations: 432.4 kB / 0.5175 GB, free: 10.76 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.87e-06/0.6347, allocations: 0 / 0.5175 GB, free: 10.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.01064/0.6453, allocations: 3.731 MB / 0.5212 GB, free: 6.961 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.6456, allocations: 222.9 kB / 0.5214 GB, free: 6.695 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004473/0.646, allocations: 311.9 kB / 0.5217 GB, free: 6.383 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.74e-05/0.6461, allocations: 25.7 kB / 0.5217 GB, free: 6.352 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003844/0.6466, allocations: 423.6 kB / 0.5221 GB, free: 5.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004214/0.647, allocations: 402 kB / 0.5225 GB, free: 5.531 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.028e-05/0.6471, allocations: 0 / 0.5225 GB, free: 5.531 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.6473, allocations: 370.8 kB / 0.5228 GB, free: 5.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005865/0.6479, allocations: 290.6 kB / 0.5231 GB, free: 4.875 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007245/0.6486, allocations: 496.9 kB / 0.5236 GB, free: 4.316 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001886/0.6505, allocations: 0.5892 MB / 0.5242 GB, free: 3.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.6505, allocations: 3.938 kB / 0.5242 GB, free: 3.727 MB / 394.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003416/0.6539, allocations: 1.419 MB / 0.5256 GB, free: 2.289 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.654, allocations: 8 kB / 0.5256 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.654, allocations: 4 kB / 0.5256 GB, free: 2.277 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009012/0.6549, allocations: 332.6 kB / 0.5259 GB, free: 1.941 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008991/0.6558, allocations: 199.7 kB / 0.5261 GB, free: 1.746 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007853/0.6637, allocations: 7.356 MB / 0.5333 GB, free: 9.938 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009643/0.6647, allocations: 23.92 kB / 0.5333 GB, free: 9.914 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.6649, allocations: 43.98 kB / 0.5333 GB, free: 9.871 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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.0002456/0.6651, allocations: 134.9 kB / 0.5335 GB, free: 9.734 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003195/0.6683, allocations: 1.214 MB / 0.5346 GB, free: 8.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.6685, allocations: 71.33 kB / 0.5347 GB, free: 8.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/0.6717, allocations: 1.312 MB / 0.536 GB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.6717, allocations: 16 kB / 0.536 GB, free: 7.086 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.6717, allocations: 8 kB / 0.536 GB, free: 7.078 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.6717, allocations: 11.97 kB / 0.536 GB, free: 7.066 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004994/0.6767, allocations: 2.582 MB / 0.5385 GB, free: 4.418 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.6768, allocations: 4.094 kB / 0.5385 GB, free: 4.414 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007315/0.6775, allocations: 151.8 kB / 0.5387 GB, free: 4.266 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000842/0.6784, allocations: 314.9 kB / 0.539 GB, free: 3.949 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.459e-05/0.6784, allocations: 8 kB / 0.539 GB, free: 3.941 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007294/0.6857, allocations: 7.078 MB / 0.5459 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.6858, allocations: 3.984 kB / 0.5459 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004014/0.6898, allocations: 1.846 MB / 0.5477 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004375/0.6903, allocations: 228.1 kB / 0.5479 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.908e-05/0.6904, allocations: 0 / 0.5479 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005453/0.6909, allocations: 27.97 kB / 0.548 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.6912, allocations: 92.09 kB / 0.5481 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-05/0.6912, allocations: 35.98 kB / 0.5481 GB, free: 10.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003361/0.6916, allocations: 228.6 kB / 0.5483 GB, free: 9.879 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.09e-06/0.6916, allocations: 0 / 0.5483 GB, free: 9.879 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00136/0.693, allocations: 275.9 kB / 0.5486 GB, free: 9.609 MB / 426.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_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * 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.004569/0.6976, allocations: 2.755 MB / 0.5513 GB, free: 6.789 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002603/0.7002, allocations: 1.446 MB / 0.5527 GB, free: 5.301 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.7002, allocations: 4 kB / 0.5527 GB, free: 5.297 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001548/0.7018, allocations: 1.037 MB / 0.5537 GB, free: 4.227 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.7023, allocations: 27.83 kB / 0.5537 GB, free: 4.203 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.7061, allocations: 1.532 MB / 0.5552 GB, free: 2.621 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007516/0.7069, allocations: 1.036 MB / 0.5562 GB, free: 1.555 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005013/0.7074, allocations: 101.9 kB / 0.5563 GB, free: 1.453 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005076/0.7079, allocations: 335.3 kB / 0.5566 GB, free: 1.125 MB / 426.7 MB Notification: Performance of SimCode: time 6.41e-07/0.7079, allocations: 0 / 0.5566 GB, free: 1.125 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04603/0.7539, allocations: 15.89 MB / 0.5722 GB, free: 1.34 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002008/0.7542, allocations: 158 kB / 0.5723 GB, free: 1.152 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.727/3.482, allocations: 3.938 kB / 0.5723 GB, free: 1.148 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat