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.001968/0.001968, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.915/1.915, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001088/0.001087, allocations: 92.42 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003672, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3102, allocations: 47.58 MB / 374.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.4343, allocations: 79.87 MB / 454.5 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003114/0.4346, allocations: 87.94 kB / 454.6 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04061/0.4753, allocations: 11.19 MB / 465.8 MB, free: 5.445 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4753, allocations: 3.938 kB / 465.8 MB, free: 5.441 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.4753, allocations: 4 kB / 465.8 MB, free: 5.438 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.001813/0.4771, allocations: 0.6238 MB / 466.4 MB, free: 4.766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.4772, allocations: 8.031 kB / 466.4 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.4773, allocations: 74.47 kB / 466.5 MB, free: 4.676 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.4783, allocations: 107.5 kB / 466.6 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/0.4788, allocations: 258.9 kB / 466.9 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.4788, allocations: 24.66 kB / 466.9 MB, free: 4.258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.384e-05/0.4789, allocations: 35.95 kB / 466.9 MB, free: 4.223 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007998/0.4797, allocations: 325.1 kB / 467.2 MB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.4798, allocations: 4 kB / 467.2 MB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.05e-05/0.4798, allocations: 12 kB / 467.3 MB, free: 3.875 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.4799, allocations: 12 kB / 467.3 MB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006691/0.4805, allocations: 246.4 kB / 467.5 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.4834, allocations: 1.444 MB / 469 MB, free: 2.039 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009509/0.4844, allocations: 0.7007 MB / 469.7 MB, free: 1.223 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001255/0.4845, allocations: 89.11 kB / 469.7 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.4845, allocations: 38.55 kB / 469.8 MB, free: 1.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.284e-06/0.4845, allocations: 0 / 469.8 MB, free: 1.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001861/0.4864, allocations: 493.8 kB / 470.3 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/0.4865, allocations: 51.41 kB / 470.3 MB, free: 0.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.4867, allocations: 158.5 kB / 470.5 MB, free: 340 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.4867, allocations: 29.7 kB / 470.5 MB, free: 304 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.4869, allocations: 238.4 kB / 470.7 MB, free: 64 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.487, allocations: 94.81 kB / 470.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.128e-05/0.4871, allocations: 4 kB / 470.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.4872, allocations: 322.8 kB / 471.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.4874, allocations: 64.53 kB / 471.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.4876, allocations: 119.3 kB / 471.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.4879, allocations: 89.11 kB / 471.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4879, allocations: 0 / 471.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008526/0.4888, allocations: 309.1 kB / 471.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4888, allocations: 4 kB / 471.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.4888, allocations: 4 kB / 471.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004531/0.4893, allocations: 80.73 kB / 471.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.4896, allocations: 39.92 kB / 471.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/0.4923, allocations: 1.863 MB / 473.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002083/0.4925, allocations: 23.78 kB / 473.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.4926, allocations: 12 kB / 473.7 MB, free: 12.88 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 () * Number of clocked 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.0002164/0.4928, allocations: 137.8 kB / 473.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.685e-05/0.4929, allocations: 15.81 kB / 473.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008752/0.4937, allocations: 296.7 kB / 474.2 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.4938, allocations: 0 / 474.2 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/0.4938, allocations: 15.88 kB / 474.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.4938, allocations: 0 / 474.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001449/0.4952, allocations: 0.6866 MB / 474.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4953, allocations: 0 / 474.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.4955, allocations: 31.88 kB / 474.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003921/0.4959, allocations: 81.36 kB / 475 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.4959, allocations: 0 / 475 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002639/0.4986, allocations: 1.858 MB / 476.8 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.4986, allocations: 4.031 kB / 476.8 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.4996, allocations: 456.6 kB / 477.3 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.4998, allocations: 108.9 kB / 477.4 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.4998, allocations: 7.984 kB / 477.4 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.5, allocations: 4 kB / 477.4 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.923e-05/0.5001, allocations: 15.98 kB / 477.4 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.5001, allocations: 4 kB / 477.4 MB, free: 8.934 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.5003, allocations: 131.5 kB / 477.6 MB, free: 8.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5003, allocations: 0 / 477.6 MB, free: 8.805 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006303/0.5009, allocations: 103.8 kB / 477.7 MB, free: 8.703 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 () * Number of clocked 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.001455/0.5024, allocations: 1.01 MB / 478.7 MB, free: 7.668 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008456/0.5032, allocations: 342.8 kB / 479 MB, free: 7.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.5033, allocations: 4.125 kB / 479 MB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005032/0.5038, allocations: 246.4 kB / 479.2 MB, free: 7.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.5041, allocations: 16.56 kB / 479.3 MB, free: 7.047 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.5076, allocations: 2.401 MB / 481.7 MB, free: 4.566 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.508, allocations: 0.7635 MB / 482.4 MB, free: 3.777 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.5082, allocations: 75.41 kB / 482.5 MB, free: 3.703 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5082, allocations: 7.938 kB / 482.5 MB, free: 3.695 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.424/2.933, allocations: 4.924 MB / 487.4 MB, free: 14.77 MB / 378.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