Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002634/0.00264, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.398/2.398, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001092/0.001092, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.546e-05, allocations: 4 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1001, allocations: 47.57 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4193/0.5195, allocations: 79.78 MB / 449 MB, free: 13.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/0.5199, allocations: 83.89 kB / 449.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0427/0.5626, allocations: 11.15 MB / 460.2 MB, free: 3.875 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5627, allocations: 3.938 kB / 460.2 MB, free: 3.871 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.5627, allocations: 4 kB / 460.2 MB, free: 3.867 MB / 330.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.001957/0.5647, allocations: 0.6123 MB / 460.8 MB, free: 3.211 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.5648, allocations: 8.031 kB / 460.8 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.5649, allocations: 70.53 kB / 460.9 MB, free: 3.125 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009907/0.5659, allocations: 99.53 kB / 461 MB, free: 3.027 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.5664, allocations: 255.4 kB / 461.3 MB, free: 2.738 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/0.5665, allocations: 32.77 kB / 461.3 MB, free: 2.707 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.592e-05/0.5666, allocations: 35.86 kB / 461.3 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008758/0.5675, allocations: 323 kB / 461.6 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.324e-05/0.5675, allocations: 8 kB / 461.6 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.71e-05/0.5676, allocations: 8 kB / 461.7 MB, free: 2.324 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.5676, allocations: 8 kB / 461.7 MB, free: 2.316 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006773/0.5683, allocations: 231.1 kB / 461.9 MB, free: 2.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003191/0.5715, allocations: 1.456 MB / 463.3 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.5726, allocations: 0.6944 MB / 464 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.5729, allocations: 101.6 kB / 464.1 MB, free: 15.58 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001627/0.5731, allocations: 85.09 kB / 464.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.5732, allocations: 42.56 kB / 464.3 MB, free: 15.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.456e-06/0.5732, allocations: 4 kB / 464.3 MB, free: 15.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009067/0.5741, allocations: 242.5 kB / 464.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.5742, allocations: 59.36 kB / 464.6 MB, free: 15.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.5744, allocations: 155.4 kB / 464.7 MB, free: 14.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.5745, allocations: 41.64 kB / 464.7 MB, free: 14.9 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.5747, allocations: 238.4 kB / 465 MB, free: 14.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.852e-05/0.5748, allocations: 78.77 kB / 465.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.896e-05/0.5748, allocations: 7.938 kB / 465.1 MB, free: 14.58 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.575, allocations: 322.8 kB / 465.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.5752, allocations: 64.56 kB / 465.4 MB, free: 14.19 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.5754, allocations: 123.3 kB / 465.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.5757, allocations: 81.14 kB / 465.6 MB, free: 13.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5757, allocations: 0 / 465.6 MB, free: 13.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009191/0.5766, allocations: 304.9 kB / 465.9 MB, free: 13.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.5767, allocations: 8 kB / 465.9 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.5767, allocations: 3.984 kB / 466 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004964/0.5772, allocations: 81 kB / 466 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.5775, allocations: 39.92 kB / 466.1 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002881/0.5804, allocations: 1.824 MB / 467.9 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.5807, allocations: 35.7 kB / 467.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.5808, allocations: 8 kB / 467.9 MB, free: 11.54 MB / 346.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 0.0001379/0.5809, allocations: 121 kB / 468.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.597e-05/0.581, allocations: 15.81 kB / 468.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008891/0.5819, allocations: 271.8 kB / 468.3 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.5819, allocations: 11.89 kB / 468.3 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.5819, allocations: 4 kB / 468.4 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.582, allocations: 4.281 kB / 468.4 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.5836, allocations: 0.6868 MB / 469 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.5837, allocations: 3.953 kB / 469 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.5839, allocations: 27.92 kB / 469.1 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000419/0.5843, allocations: 76.81 kB / 469.1 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.5844, allocations: 4 kB / 469.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002772/0.5871, allocations: 1.819 MB / 471 MB, free: 8.285 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.5872, allocations: 4.031 kB / 471 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.5883, allocations: 439.9 kB / 471.4 MB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001506/0.5885, allocations: 112.9 kB / 471.5 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.803e-05/0.5885, allocations: 4 kB / 471.5 MB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.5887, allocations: 4 kB / 471.5 MB, free: 7.695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.367e-05/0.5888, allocations: 23.91 kB / 471.5 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.5888, allocations: 8.062 kB / 471.6 MB, free: 7.664 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000163/0.589, allocations: 127.5 kB / 471.7 MB, free: 7.539 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.589, allocations: 0 / 471.7 MB, free: 7.539 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006726/0.5897, allocations: 103.7 kB / 471.8 MB, free: 7.438 MB / 346.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.001602/0.5913, allocations: 1.003 MB / 472.8 MB, free: 6.406 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009528/0.5923, allocations: 346.4 kB / 473.1 MB, free: 6.055 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5923, allocations: 288 / 473.1 MB, free: 6.055 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005321/0.5929, allocations: 246.4 kB / 473.4 MB, free: 5.801 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.5932, allocations: 16.06 kB / 473.4 MB, free: 5.785 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.5948, allocations: 0.4948 MB / 473.9 MB, free: 5.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.5953, allocations: 0.7672 MB / 474.6 MB, free: 4.457 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/0.5955, allocations: 71.41 kB / 474.7 MB, free: 4.387 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5956, allocations: 0 / 474.7 MB, free: 4.387 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.926/3.522, allocations: 4.998 MB / 479.7 MB, free: 15.39 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat