Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001495, allocations: 178.9 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.161/1.161, allocations: 205.2 MB / 214.1 MB, free: 5.176 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.0009549/0.0009549, allocations: 89.92 kB / 262.1 MB, free: 5.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1521/0.1531, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06304/0.2161, allocations: 47.58 MB / 362.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2128/0.429, allocations: 79.04 MB / 441.7 MB, free: 10.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.4292, allocations: 84.55 kB / 441.8 MB, free: 10.6 MB / 314.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.02451/0.4537, allocations: 11.29 MB / 453.1 MB, free: 7.211 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.4538, allocations: 7.781 kB / 453.1 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007071/0.4545, allocations: 111.8 kB / 453.2 MB, free: 7.164 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.4548, allocations: 262.4 kB / 453.4 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.4548, allocations: 11.5 kB / 453.5 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.358e-05/0.4549, allocations: 23.31 kB / 453.5 MB, free: 6.918 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003501/0.4552, allocations: 211.3 kB / 453.7 MB, free: 6.906 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.4556, allocations: 274.1 kB / 453.9 MB, free: 6.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.4557, allocations: 7.625 kB / 454 MB, free: 6.816 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.4557, allocations: 3.984 kB / 454 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.4557, allocations: 7.5 kB / 454 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001585/0.4573, allocations: 1.388 MB / 455.4 MB, free: 5.816 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.4576, allocations: 187.4 kB / 455.5 MB, free: 5.789 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.4577, allocations: 96.08 kB / 455.6 MB, free: 5.773 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.287e-05/0.4578, allocations: 92.28 kB / 455.7 MB, free: 5.676 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.089e-05/0.4578, allocations: 30.56 kB / 455.8 MB, free: 5.637 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.4578, allocations: 0 / 455.8 MB, free: 5.637 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005864/0.4584, allocations: 250.7 kB / 456 MB, free: 5.555 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.422e-05/0.4584, allocations: 55.25 kB / 456.1 MB, free: 5.492 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.959e-05/0.4585, allocations: 137.1 kB / 456.2 MB, free: 5.391 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.4586, allocations: 25.7 kB / 456.2 MB, free: 5.359 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.327e-05/0.4586, allocations: 173.8 kB / 456.4 MB, free: 5.207 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.4586, allocations: 79.95 kB / 456.5 MB, free: 5.148 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.098e-05/0.4587, allocations: 0 / 456.5 MB, free: 5.148 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.861e-05/0.4587, allocations: 325.8 kB / 456.8 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.889e-05/0.4588, allocations: 63.88 kB / 456.8 MB, free: 4.824 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/0.4589, allocations: 121.8 kB / 457 MB, free: 4.758 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.4591, allocations: 82.39 kB / 457 MB, free: 4.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4592, allocations: 7.812 kB / 457 MB, free: 4.746 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005526/0.4597, allocations: 311.2 kB / 457.4 MB, free: 4.645 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.4597, allocations: 9.562 kB / 457.4 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.4597, allocations: 0 / 457.4 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002754/0.46, allocations: 73.44 kB / 457.4 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.4602, allocations: 46.66 kB / 457.5 MB, free: 4.609 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.4616, allocations: 1.722 MB / 459.2 MB, free: 3.234 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.4617, allocations: 15.62 kB / 459.2 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.4617, allocations: 15.69 kB / 459.2 MB, free: 3.223 MB / 314.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 6.059e-05/0.4618, allocations: 104.9 kB / 459.3 MB, free: 3.113 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.15e-05/0.4618, allocations: 15.5 kB / 459.3 MB, free: 3.105 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005499/0.4624, allocations: 278.2 kB / 459.6 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.4624, allocations: 3.844 kB / 459.6 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4624, allocations: 0 / 459.6 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.4624, allocations: 0 / 459.6 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008064/0.4632, allocations: 0.6547 MB / 460.3 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4633, allocations: 1.25 kB / 460.3 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/0.4634, allocations: 24.27 kB / 460.3 MB, free: 2.598 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002351/0.4636, allocations: 71.28 kB / 460.4 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.4637, allocations: 3.984 kB / 460.4 MB, free: 2.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.465, allocations: 1.715 MB / 462.1 MB, free: 17.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4651, allocations: 7.906 kB / 462.1 MB, free: 17.19 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006002/0.4657, allocations: 436.8 kB / 462.5 MB, free: 17 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008339/0.4665, allocations: 0.8845 MB / 463.4 MB, free: 16.44 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.4e-05/0.4666, allocations: 109.6 kB / 463.5 MB, free: 16.33 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.4666, allocations: 4 kB / 463.5 MB, free: 16.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.4668, allocations: 0 / 463.5 MB, free: 16.33 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.984e-05/0.4668, allocations: 19.61 kB / 463.5 MB, free: 16.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.4668, allocations: 7.094 kB / 463.5 MB, free: 16.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.2e-05/0.4669, allocations: 115.8 kB / 463.7 MB, free: 16.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001037/0.468, allocations: 96.66 kB / 463.8 MB, free: 16.21 MB / 330.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.0001898/0.4681, allocations: 128.7 kB / 463.9 MB, free: 16.11 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005134/0.4687, allocations: 299.1 kB / 464.2 MB, free: 15.99 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4687, allocations: 4.375 kB / 464.2 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002953/0.469, allocations: 213.9 kB / 464.4 MB, free: 15.87 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/0.4692, allocations: 5.312 kB / 464.4 MB, free: 15.87 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000806/0.47, allocations: 391.6 kB / 464.8 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003884/0.4704, allocations: 0.7732 MB / 465.5 MB, free: 14.92 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4704, allocations: 0 / 465.5 MB, free: 14.92 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_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_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat