Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 221.5 MB / 230.3 MB, free: 7.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000989/0.000989, allocations: 81.92 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.454e-05/1.475e-05, allocations: 4 kB / 337.2 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1005, allocations: 50.42 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3339/0.4345, allocations: 80.32 MB / 467.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/0.4348, allocations: 83.95 kB / 468 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02624/0.461, allocations: 11.26 MB / 479.2 MB, free: 2.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4611, allocations: 8 kB / 479.2 MB, free: 2.973 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.4611, allocations: 4 kB / 479.2 MB, free: 2.969 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001239/0.4623, allocations: 0.6084 MB / 479.9 MB, free: 2.316 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.4624, allocations: 8.031 kB / 479.9 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006619/0.463, allocations: 107.5 kB / 480 MB, free: 2.203 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.4635, allocations: 263.4 kB / 480.2 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.4635, allocations: 12 kB / 480.2 MB, free: 1.895 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.4635, allocations: 19.91 kB / 480.3 MB, free: 1.875 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004099/0.464, allocations: 213.5 kB / 480.5 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004841/0.4644, allocations: 281.4 kB / 480.7 MB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.4645, allocations: 3.938 kB / 480.7 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.4645, allocations: 7.891 kB / 480.7 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.4645, allocations: 8 kB / 480.8 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.4664, allocations: 1.385 MB / 482.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005986/0.467, allocations: 0.6888 MB / 482.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.4671, allocations: 92.86 kB / 482.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001324/0.4673, allocations: 89.09 kB / 483 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.4673, allocations: 30.56 kB / 483 MB, free: 14.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.924e-06/0.4673, allocations: 0 / 483 MB, free: 14.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006573/0.468, allocations: 270.3 kB / 483.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.468, allocations: 51.41 kB / 483.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.4681, allocations: 142.5 kB / 483.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.4682, allocations: 25.7 kB / 483.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.965e-05/0.4683, allocations: 184.2 kB / 483.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.165e-05/0.4683, allocations: 78.81 kB / 483.8 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.789e-06/0.4683, allocations: 0 / 483.8 MB, free: 14.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.945e-05/0.4684, allocations: 322.8 kB / 484.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.531e-05/0.4685, allocations: 60.56 kB / 484.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.4687, allocations: 111.1 kB / 484.3 MB, free: 13.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.4689, allocations: 109.1 kB / 484.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4689, allocations: 0 / 484.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005883/0.4695, allocations: 320.4 kB / 484.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.4696, allocations: 8 kB / 484.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4696, allocations: 0 / 484.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002756/0.4699, allocations: 80.92 kB / 484.8 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.47, allocations: 43.92 kB / 484.8 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.4716, allocations: 1.755 MB / 486.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.4718, allocations: 15.75 kB / 486.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.4718, allocations: 8 kB / 486.6 MB, free: 11.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.672e-05/0.4719, allocations: 119 kB / 486.7 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005472/0.4724, allocations: 273.9 kB / 487 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.4725, allocations: 19.75 kB / 487 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005923/0.4731, allocations: 286.8 kB / 487.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4731, allocations: 4 kB / 487.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.4731, allocations: 4 kB / 487.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4731, allocations: 3.984 kB / 487.3 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009637/0.4741, allocations: 0.6567 MB / 487.9 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.4741, allocations: 0 / 487.9 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.4742, allocations: 23.94 kB / 488 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002255/0.4745, allocations: 72.8 kB / 488 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.4745, allocations: 8 kB / 488 MB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001546/0.476, allocations: 1.74 MB / 489.8 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4761, allocations: 32 / 489.8 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006877/0.4768, allocations: 453.5 kB / 490.2 MB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.866e-05/0.4769, allocations: 109 kB / 490.3 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.4769, allocations: 8.062 kB / 490.3 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.477, allocations: 0 / 490.3 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/0.477, allocations: 27.78 kB / 490.4 MB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.4771, allocations: 8 kB / 490.4 MB, free: 7.047 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.706e-05/0.4771, allocations: 109.1 kB / 490.5 MB, free: 6.941 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.313e-06/0.4772, allocations: 0 / 490.5 MB, free: 6.941 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006113/0.4778, allocations: 95.62 kB / 490.6 MB, free: 6.848 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001027/0.4788, allocations: 1.01 MB / 491.6 MB, free: 5.809 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005195/0.4793, allocations: 313.7 kB / 491.9 MB, free: 5.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4794, allocations: 0 / 491.9 MB, free: 5.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002782/0.4796, allocations: 241.7 kB / 492.1 MB, free: 5.246 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.4799, allocations: 15.97 kB / 492.1 MB, free: 5.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00095/0.4808, allocations: 443.2 kB / 492.6 MB, free: 4.766 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.4811, allocations: 0.7636 MB / 493.3 MB, free: 3.977 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.4813, allocations: 21.84 kB / 493.4 MB, free: 3.953 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.4814, allocations: 71.17 kB / 493.4 MB, free: 3.887 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4814, allocations: 0 / 493.4 MB, free: 3.887 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.5041, allocations: 3.919 MB / 497.3 MB, free: 15.98 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.5043, allocations: 164.2 kB / 497.5 MB, free: 15.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.59/2.094, allocations: 3.938 kB / 497.5 MB, free: 15.79 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat