Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001631/0.001631, allocations: 203.4 kB / 8.539 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.19/1.19, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000907/0.000907, allocations: 88.7 kB / 286.3 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.091/0.09194, allocations: 56.91 MB / 343.3 MB, free: 8.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07981/0.1718, allocations: 51.47 MB / 394.7 MB, free: 5.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2059/0.3777, allocations: 81.11 MB / 475.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.378, allocations: 91.73 kB / 475.9 MB, free: 11.35 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.02567/0.4037, allocations: 12.21 MB / 488.1 MB, free: 2.371 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.4037, allocations: 8 kB / 488.1 MB, free: 2.363 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007277/0.4045, allocations: 109.1 kB / 488.2 MB, free: 2.266 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.4048, allocations: 266.9 kB / 488.5 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.4048, allocations: 12 kB / 488.5 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.4048, allocations: 19.94 kB / 488.5 MB, free: 1.961 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003592/0.4052, allocations: 214.6 kB / 488.7 MB, free: 1.832 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003992/0.4056, allocations: 274.5 kB / 489 MB, free: 1.625 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.4056, allocations: 3.906 kB / 489 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.4057, allocations: 0 / 489 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.4057, allocations: 12 kB / 489 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.4073, allocations: 1.387 MB / 490.4 MB, free: 360 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.4076, allocations: 192.4 kB / 490.6 MB, free: 220 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.4077, allocations: 87.45 kB / 490.7 MB, free: 164 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001618/0.4079, allocations: 174.2 kB / 490.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.4079, allocations: 36.03 kB / 490.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.793e-06/0.4079, allocations: 0 / 490.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006495/0.4086, allocations: 251.1 kB / 491.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.4086, allocations: 55.41 kB / 491.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.4087, allocations: 129.4 kB / 491.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.4087, allocations: 25.7 kB / 491.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.776e-05/0.4088, allocations: 175.2 kB / 491.5 MB, free: 15.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.4089, allocations: 82.12 kB / 491.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.068e-05/0.4089, allocations: 0 / 491.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.409, allocations: 330.5 kB / 491.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.4091, allocations: 63.25 kB / 492 MB, free: 14.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.4093, allocations: 109.6 kB / 492.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002278/0.4095, allocations: 100.4 kB / 492.2 MB, free: 14.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4095, allocations: 0 / 492.2 MB, free: 14.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006213/0.4101, allocations: 304.9 kB / 492.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.4102, allocations: 8.188 kB / 492.5 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.4102, allocations: 4 kB / 492.5 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002943/0.4105, allocations: 70.22 kB / 492.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.4107, allocations: 43.73 kB / 492.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/0.4124, allocations: 1.721 MB / 494.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.4125, allocations: 15.78 kB / 494.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.4126, allocations: 11.06 kB / 494.4 MB, free: 12.73 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 () * 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 8.678e-05/0.4127, allocations: 116.9 kB / 494.5 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.541e-05/0.4127, allocations: 15.81 kB / 494.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006158/0.4133, allocations: 282.8 kB / 494.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.4134, allocations: 0 / 494.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4134, allocations: 4 kB / 494.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.4134, allocations: 5.406 kB / 494.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00096/0.4143, allocations: 0.6463 MB / 495.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.4144, allocations: 0 / 495.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.4145, allocations: 27.92 kB / 495.4 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002398/0.4148, allocations: 75.06 kB / 495.5 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.4148, allocations: 0 / 495.5 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/0.4165, allocations: 1.716 MB / 497.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.4165, allocations: 4.031 kB / 497.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006873/0.4172, allocations: 433.3 kB / 497.7 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008864/0.4181, allocations: 0.8926 MB / 498.6 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.694e-05/0.4182, allocations: 111.8 kB / 498.7 MB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.4183, allocations: 4 kB / 498.7 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.4184, allocations: 0 / 498.7 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.026e-05/0.4184, allocations: 13.48 kB / 498.7 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.4184, allocations: 6.625 kB / 498.7 MB, free: 8.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.715e-05/0.4185, allocations: 114 kB / 498.8 MB, free: 8.738 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001091/0.4196, allocations: 106.6 kB / 498.9 MB, free: 8.641 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 () * 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.0002048/0.4198, allocations: 125.2 kB / 499 MB, free: 8.508 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005412/0.4204, allocations: 303.3 kB / 499.3 MB, free: 8.266 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4204, allocations: 0 / 499.3 MB, free: 8.266 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003053/0.4207, allocations: 210.8 kB / 499.5 MB, free: 8.086 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.4209, allocations: 19.61 kB / 499.5 MB, free: 8.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008844/0.4218, allocations: 393.8 kB / 499.9 MB, free: 7.711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003874/0.4222, allocations: 0.7745 MB / 0.489 GB, free: 6.914 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4222, allocations: 0 / 0.489 GB, free: 6.914 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat