Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",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.001048/0.001048, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.17/1.17, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008948/0.000895, allocations: 91.53 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09249/0.09342, allocations: 56.91 MB / 343.3 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08232/0.1758, allocations: 51.47 MB / 394.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2144/0.3902, allocations: 87.6 MB / 482.3 MB, free: 5.641 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/0.3904, allocations: 91 kB / 482.4 MB, free: 5.594 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.06191/0.4523, allocations: 27.58 MB / 0.498 GB, free: 15.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.4524, allocations: 16 kB / 0.4981 GB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002322/0.4547, allocations: 342.7 kB / 0.4984 GB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.455, allocations: 254.8 kB / 0.4986 GB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.653e-05/0.455, allocations: 28 kB / 0.4986 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.4552, allocations: 48 kB / 0.4987 GB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001275/0.4564, allocations: 0.66 MB / 0.4993 GB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.4577, allocations: 0.6888 MB / 0.5 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/0.4577, allocations: 0 / 0.5 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.253e-05/0.4578, allocations: 0 / 0.5 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.101e-05/0.4578, allocations: 20 kB / 0.5 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00454/0.4624, allocations: 2.93 MB / 0.5029 GB, free: 9.945 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004195/0.4628, allocations: 263.8 kB / 0.5031 GB, free: 9.684 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/0.4631, allocations: 178.3 kB / 0.5033 GB, free: 9.508 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001744/0.4633, allocations: 178.7 kB / 0.5035 GB, free: 9.293 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.4633, allocations: 43 kB / 0.5035 GB, free: 9.242 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 1.753e-06/0.4634, allocations: 5.219 kB / 0.5035 GB, free: 9.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.004213/0.4676, allocations: 1.487 MB / 0.505 GB, free: 7.695 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.4676, allocations: 81.61 kB / 0.5051 GB, free: 7.598 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.4679, allocations: 251.1 kB / 0.5053 GB, free: 7.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.064e-05/0.4679, allocations: 29.7 kB / 0.5053 GB, free: 7.305 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.4681, allocations: 354.6 kB / 0.5057 GB, free: 6.949 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.4683, allocations: 201 kB / 0.5059 GB, free: 6.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.4683, allocations: 0 / 0.5059 GB, free: 6.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4684, allocations: 346.8 kB / 0.5062 GB, free: 6.402 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.4688, allocations: 194 kB / 0.5064 GB, free: 6.211 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004864/0.4693, allocations: 418.6 kB / 0.5068 GB, free: 5.691 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006221/0.4699, allocations: 271.1 kB / 0.507 GB, free: 5.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.4699, allocations: 0 / 0.507 GB, free: 5.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001455/0.4714, allocations: 0.7053 MB / 0.5077 GB, free: 4.711 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.4714, allocations: 4 kB / 0.5077 GB, free: 4.707 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.4714, allocations: 8.719 kB / 0.5077 GB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00022/0.4716, allocations: 65.67 kB / 0.5078 GB, free: 4.629 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.4727, allocations: 223.7 kB / 0.508 GB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/0.4745, allocations: 2.532 MB / 0.5105 GB, free: 1.648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000783/0.4753, allocations: 75.95 kB / 0.5106 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.328e-05/0.4754, allocations: 39.98 kB / 0.5106 GB, free: 1.535 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.4756, allocations: 124.7 kB / 0.5107 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.752e-05/0.4757, allocations: 39.53 kB / 0.5107 GB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.477, allocations: 0.5883 MB / 0.5113 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.4771, allocations: 11.91 kB / 0.5113 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4771, allocations: 0 / 0.5113 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4771, allocations: 3.984 kB / 0.5113 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.4791, allocations: 1.191 MB / 0.5125 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.4791, allocations: 0 / 0.5125 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008528/0.4799, allocations: 157.1 kB / 0.5127 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001655/0.4801, allocations: 53.69 kB / 0.5127 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.112e-05/0.4802, allocations: 15.89 kB / 0.5127 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001709/0.4819, allocations: 2.513 MB / 0.5152 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4819, allocations: 0 / 0.5152 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001501/0.4834, allocations: 0.877 MB / 0.516 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001992/0.4854, allocations: 1.497 MB / 0.5175 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001926/0.4856, allocations: 160.6 kB / 0.5176 GB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.08e-05/0.4857, allocations: 4 kB / 0.5176 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006335/0.4863, allocations: 60.08 kB / 0.5177 GB, free: 9.875 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.4865, allocations: 44.36 kB / 0.5177 GB, free: 9.832 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.808e-05/0.4865, allocations: 16 kB / 0.5178 GB, free: 9.816 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001602/0.4867, allocations: 191 kB / 0.5179 GB, free: 9.633 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001293/0.488, allocations: 183.9 kB / 0.5181 GB, free: 9.453 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 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.0002646/0.4883, allocations: 168.4 kB / 0.5183 GB, free: 9.285 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.4894, allocations: 0.7318 MB / 0.519 GB, free: 8.531 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4894, allocations: 0 / 0.519 GB, free: 8.531 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005614/0.49, allocations: 455 kB / 0.5194 GB, free: 8.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.4902, allocations: 28.97 kB / 0.5195 GB, free: 8.039 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.4925, allocations: 0.8453 MB / 0.5203 GB, free: 7.168 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007075/0.4932, allocations: 0.9671 MB / 0.5212 GB, free: 6.176 MB / 394.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4932, allocations: 0 / 0.5212 GB, free: 6.176 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat