Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001215/0.001215, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 86.47 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09377/0.09481, allocations: 56.91 MB / 343.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08201/0.1768, allocations: 51.48 MB / 394.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.214/0.3909, allocations: 83.08 MB / 477.8 MB, free: 9.855 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.3912, allocations: 89.7 kB / 477.9 MB, free: 9.824 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.06344/0.4546, allocations: 28.02 MB / 0.4941 GB, free: 3.246 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.4547, allocations: 8 kB / 0.4941 GB, free: 3.238 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001879/0.4566, allocations: 282.7 kB / 0.4943 GB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.4568, allocations: 253.9 kB / 0.4946 GB, free: 2.672 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.059e-05/0.4569, allocations: 28 kB / 0.4946 GB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001762/0.4571, allocations: 60 kB / 0.4947 GB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001422/0.4585, allocations: 0.7069 MB / 0.4954 GB, free: 1.879 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.46, allocations: 0.7705 MB / 0.4961 GB, free: 1.098 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.295e-05/0.46, allocations: 11.89 kB / 0.4961 GB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-05/0.4601, allocations: 0 / 0.4961 GB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.584e-05/0.4601, allocations: 24 kB / 0.4961 GB, free: 1.062 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00545/0.4656, allocations: 3.5 MB / 0.4996 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.4672, allocations: 0.7779 MB / 0.5003 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006703/0.4679, allocations: 392.1 kB / 0.5007 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001649/0.4681, allocations: 198.9 kB / 0.5009 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.4681, allocations: 39.34 kB / 0.5009 GB, free: 11.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 2.114e-06/0.4681, allocations: 0 / 0.5009 GB, free: 11.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.001541/0.4697, allocations: 0.646 MB / 0.5015 GB, free: 11.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.4697, allocations: 97.73 kB / 0.5016 GB, free: 11.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002938/0.47, allocations: 283.1 kB / 0.5019 GB, free: 10.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.4701, allocations: 28.33 kB / 0.5019 GB, free: 10.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.4702, allocations: 370.7 kB / 0.5023 GB, free: 10.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001915/0.4704, allocations: 291.6 kB / 0.5026 GB, free: 10.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/0.4705, allocations: 0 / 0.5026 GB, free: 10.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.4706, allocations: 354.8 kB / 0.5029 GB, free: 9.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004206/0.471, allocations: 234.6 kB / 0.5031 GB, free: 9.539 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005389/0.4716, allocations: 430.5 kB / 0.5035 GB, free: 9.047 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008639/0.4725, allocations: 350.7 kB / 0.5039 GB, free: 8.703 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.4725, allocations: 0 / 0.5039 GB, free: 8.703 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001804/0.4743, allocations: 0.8812 MB / 0.5047 GB, free: 7.805 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.4743, allocations: 6.188 kB / 0.5047 GB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.4743, allocations: 8.859 kB / 0.5048 GB, free: 7.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003669/0.4747, allocations: 127.4 kB / 0.5049 GB, free: 7.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008902/0.4756, allocations: 203.7 kB / 0.5051 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003497/0.4791, allocations: 5.281 MB / 0.5102 GB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005646/0.4797, allocations: 83.03 kB / 0.5103 GB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.57e-05/0.4798, allocations: 36 kB / 0.5103 GB, free: 1.598 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.0001528/0.4799, allocations: 130.3 kB / 0.5105 GB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.4801, allocations: 51.42 kB / 0.5105 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00177/0.4818, allocations: 0.7977 MB / 0.5113 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.4819, allocations: 11.94 kB / 0.5113 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.4819, allocations: 4 kB / 0.5113 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.4819, allocations: 3.984 kB / 0.5113 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004314/0.4862, allocations: 3.119 MB / 0.5144 GB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.4862, allocations: 8.969 kB / 0.5144 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006159/0.4868, allocations: 143.8 kB / 0.5145 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003045/0.4872, allocations: 123.3 kB / 0.5146 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.603e-05/0.4872, allocations: 15.91 kB / 0.5146 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003187/0.4904, allocations: 5.031 MB / 0.5195 GB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.4905, allocations: 15.84 kB / 0.5196 GB, free: 7.23 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002244/0.4927, allocations: 1.706 MB / 0.5212 GB, free: 5.207 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002746/0.4955, allocations: 2.377 MB / 0.5236 GB, free: 2.508 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.4956, allocations: 148.2 kB / 0.5237 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.812e-05/0.4957, allocations: 8 kB / 0.5237 GB, free: 2.336 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000514/0.4963, allocations: 19.98 kB / 0.5237 GB, free: 2.316 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.253e-05/0.4964, allocations: 64.28 kB / 0.5238 GB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.476e-05/0.4964, allocations: 28 kB / 0.5238 GB, free: 2.227 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002016/0.4966, allocations: 207 kB / 0.524 GB, free: 2.023 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001663/0.4983, allocations: 248.2 kB / 0.5242 GB, free: 1.781 MB / 394.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.0002723/0.4986, allocations: 169.7 kB / 0.5244 GB, free: 1.609 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.5, allocations: 1.025 MB / 0.5254 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5, allocations: 5.5 kB / 0.5254 GB, free: 0.543 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007929/0.5008, allocations: 0.7078 MB / 0.5261 GB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004167/0.5013, allocations: 48.83 kB / 0.5261 GB, free: 15.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.5037, allocations: 1.159 MB / 0.5273 GB, free: 14.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007566/0.5044, allocations: 0.9974 MB / 0.5283 GB, free: 13.43 MB / 410.7 MB Notification: Performance of SimCode: time 3.1e-07/0.5044, allocations: 0 / 0.5283 GB, free: 13.43 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat