Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.CylinderLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",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 4.0.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 181.5 kB / 8.134 MB, free: 2.215 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.191/1.191, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0009194/0.0009195, allocations: 89.53 kB / 280.8 MB, free: 1.324 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08888/0.08983, allocations: 55.84 MB / 336.6 MB, free: 9.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.2656, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08189/0.3475, allocations: 82.33 MB / 469.3 MB, free: 4.453 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.3478, allocations: 89.36 kB / 469.4 MB, free: 4.367 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.06341/0.4112, allocations: 26.66 MB / 496.1 MB, free: 9.387 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.4112, allocations: 15.94 kB / 496.1 MB, free: 9.371 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001905/0.4132, allocations: 270.7 kB / 496.4 MB, free: 9.105 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.4134, allocations: 257.9 kB / 496.6 MB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.762e-05/0.4135, allocations: 32 kB / 496.7 MB, free: 8.781 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.4137, allocations: 63.98 kB / 496.7 MB, free: 8.719 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00136/0.415, allocations: 0.7069 MB / 497.4 MB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.4165, allocations: 0.7705 MB / 498.2 MB, free: 7.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.569e-05/0.4165, allocations: 3.906 kB / 498.2 MB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.556e-05/0.4166, allocations: 0 / 498.2 MB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.4166, allocations: 24 kB / 498.2 MB, free: 7.203 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005152/0.4218, allocations: 3.24 MB / 0.4897 GB, free: 3.789 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.4234, allocations: 0.7828 MB / 0.4905 GB, free: 2.984 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006812/0.4241, allocations: 400 kB / 0.4909 GB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.4243, allocations: 101.9 kB / 0.4909 GB, free: 2.473 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.4243, allocations: 43.34 kB / 0.491 GB, free: 2.422 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 2.625e-06/0.4243, allocations: 0 / 0.491 GB, free: 2.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.001581/0.4259, allocations: 0.6498 MB / 0.4916 GB, free: 1.754 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.4259, allocations: 85.89 kB / 0.4917 GB, free: 1.652 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.4263, allocations: 283.1 kB / 0.492 GB, free: 1.367 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.117e-05/0.4263, allocations: 25.7 kB / 0.492 GB, free: 1.336 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.4265, allocations: 370.7 kB / 0.4924 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.4267, allocations: 287.7 kB / 0.4926 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.4268, allocations: 0 / 0.4926 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4269, allocations: 362.7 kB / 0.493 GB, free: 324 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004398/0.4273, allocations: 234.6 kB / 0.4932 GB, free: 88 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1/0.5274, allocations: 441.6 kB / 0.4936 GB, free: 125.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000814/0.5282, allocations: 340.1 kB / 0.4939 GB, free: 125.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/0.5282, allocations: 0 / 0.4939 GB, free: 125.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001659/0.5299, allocations: 0.8849 MB / 0.4948 GB, free: 125.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.5299, allocations: 3.812 kB / 0.4948 GB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.5299, allocations: 7.688 kB / 0.4948 GB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003518/0.5303, allocations: 124.1 kB / 0.4949 GB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008503/0.5312, allocations: 210.6 kB / 0.4951 GB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/0.5338, allocations: 5.294 MB / 0.5003 GB, free: 120.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005562/0.5344, allocations: 71.47 kB / 0.5004 GB, free: 120.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.626e-05/0.5344, allocations: 38.47 kB / 0.5004 GB, free: 120.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 116 * 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%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.5346, allocations: 134.2 kB / 0.5005 GB, free: 120.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.5347, allocations: 52.38 kB / 0.5006 GB, free: 120.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/0.5363, allocations: 0.8048 MB / 0.5014 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.5363, allocations: 7.406 kB / 0.5014 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.5363, allocations: 3.844 kB / 0.5014 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.5363, allocations: 4.828 kB / 0.5014 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.5396, allocations: 2.557 MB / 0.5039 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.5396, allocations: 11.16 kB / 0.5039 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/0.5402, allocations: 145.1 kB / 0.504 GB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002607/0.5405, allocations: 106.8 kB / 0.5041 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.516e-05/0.5405, allocations: 17.47 kB / 0.5042 GB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002293/0.5428, allocations: 5.034 MB / 0.5091 GB, free: 114 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.306e-06/0.5429, allocations: 13.62 kB / 0.5091 GB, free: 114 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00182/0.5447, allocations: 1.707 MB / 0.5108 GB, free: 112.9 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002182/0.5469, allocations: 2.381 MB / 0.5131 GB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.547, allocations: 142.3 kB / 0.5132 GB, free: 111.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.051e-05/0.5471, allocations: 14.36 kB / 0.5132 GB, free: 111.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004699/0.5476, allocations: 13.56 kB / 0.5132 GB, free: 111.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.367e-05/0.5477, allocations: 70.67 kB / 0.5133 GB, free: 111.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.5477, allocations: 32.5 kB / 0.5133 GB, free: 111.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001559/0.5479, allocations: 199.5 kB / 0.5135 GB, free: 111.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001526/0.5494, allocations: 244 kB / 0.5138 GB, free: 111.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 1 (referenceSensor.port.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002166/0.5496, allocations: 165.3 kB / 0.5139 GB, free: 111.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.5508, allocations: 1.029 MB / 0.5149 GB, free: 110.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.5508, allocations: 1.438 kB / 0.5149 GB, free: 110.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006188/0.5514, allocations: 0.7055 MB / 0.5156 GB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.5518, allocations: 40.81 kB / 0.5157 GB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/0.554, allocations: 1.161 MB / 0.5168 GB, free: 109.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000549/0.5545, allocations: 1 MB / 0.5178 GB, free: 109 MB / 378.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5545, allocations: 0 / 0.5178 GB, free: 109 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat