Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_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.0009751/0.0009752, allocations: 208.6 kB / 8.544 MB, free: 2.617 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.088/1.088, allocations: 225.5 MB / 234.4 MB, free: 3.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009003/0.0009003, allocations: 90.94 kB / 286.3 MB, free: 488 kB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 0.09595/0.09688, allocations: 56.9 MB / 343.2 MB, free: 7.586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.2697, allocations: 51.45 MB / 394.7 MB, free: 36.96 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07929/0.349, allocations: 80.99 MB / 475.7 MB, free: 3.855 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.3492, allocations: 84.84 kB / 475.8 MB, free: 3.773 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.02284/0.3721, allocations: 8.586 MB / 484.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.3722, allocations: 8 kB / 484.4 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.345e-05/0.3722, allocations: 39.53 kB / 484.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/0.3726, allocations: 272 kB / 484.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.3726, allocations: 13.69 kB / 484.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.092e-05/0.3726, allocations: 16 kB / 484.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003565/0.373, allocations: 197.2 kB / 484.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.3734, allocations: 216.8 kB / 485.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.3734, allocations: 0 / 485.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.3734, allocations: 0 / 485.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.3734, allocations: 8 kB / 485.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.3751, allocations: 1.06 MB / 486.2 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.3753, allocations: 122.6 kB / 486.3 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.632e-05/0.3754, allocations: 49.08 kB / 486.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.3754, allocations: 11.97 kB / 486.3 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.3754, allocations: 34.56 kB / 486.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.162e-06/0.3755, allocations: 0 / 486.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009448/0.3764, allocations: 381.1 kB / 486.8 MB, free: 8.559 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.3764, allocations: 55.59 kB / 486.8 MB, free: 8.492 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.3767, allocations: 213.1 kB / 487 MB, free: 8.277 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.3767, allocations: 25.7 kB / 487 MB, free: 8.246 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.927e-05/0.3768, allocations: 215.4 kB / 487.3 MB, free: 8.031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.816e-05/0.3769, allocations: 72.45 kB / 487.3 MB, free: 7.961 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.143e-05/0.3769, allocations: 0 / 487.3 MB, free: 7.961 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.377, allocations: 346.8 kB / 487.7 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.3771, allocations: 63.94 kB / 487.7 MB, free: 7.551 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.3773, allocations: 152 kB / 487.9 MB, free: 7.355 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.3774, allocations: 82.02 kB / 488 MB, free: 7.277 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3774, allocations: 4 kB / 488 MB, free: 7.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005143/0.378, allocations: 301.2 kB / 488.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.378, allocations: 4 kB / 488.3 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.378, allocations: 4.406 kB / 488.3 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002104/0.3782, allocations: 57.69 kB / 488.3 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003494/0.3786, allocations: 79.89 kB / 488.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/0.3804, allocations: 2.52 MB / 490.9 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/0.3807, allocations: 24.02 kB / 490.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.461e-05/0.3807, allocations: 14.34 kB / 491 MB, free: 4.035 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 35 * 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 8.445e-05/0.3808, allocations: 117 kB / 491.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.618e-05/0.3808, allocations: 27.62 kB / 491.1 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.407e-05/0.3809, allocations: 26.98 kB / 491.1 MB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3809, allocations: 7.938 kB / 491.1 MB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3809, allocations: 0 / 491.1 MB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3809, allocations: 0 / 491.1 MB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.3812, allocations: 278.2 kB / 491.4 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3812, allocations: 0 / 491.4 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002317/0.3815, allocations: 47.97 kB / 491.4 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001458/0.3816, allocations: 53.59 kB / 491.5 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.3816, allocations: 3.984 kB / 491.5 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001645/0.3833, allocations: 2.509 MB / 494 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.3833, allocations: 9.406 kB / 494 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003719/0.3837, allocations: 302.9 kB / 494.3 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004824/0.3842, allocations: 0.6752 MB / 495 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.327e-05/0.3843, allocations: 96.81 kB / 495.1 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.618e-05/0.3843, allocations: 4 kB / 495.1 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.3845, allocations: 19.98 kB / 495.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.331e-05/0.3846, allocations: 11.98 kB / 495.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.3846, allocations: 11.89 kB / 495.1 MB, free: 15.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 0.0001451/0.3848, allocations: 173.2 kB / 495.3 MB, free: 15.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009564/0.3857, allocations: 60 kB / 495.4 MB, free: 15.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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.0001301/0.3859, allocations: 107.2 kB / 495.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005405/0.3864, allocations: 387.3 kB / 495.8 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3864, allocations: 0.8125 kB / 495.8 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003083/0.3867, allocations: 295.5 kB / 496.1 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.387, allocations: 16.44 kB / 496.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000774/0.3878, allocations: 348.7 kB / 496.5 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003862/0.3881, allocations: 0.8121 MB / 497.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3882, allocations: 0 / 497.3 MB, free: 13.25 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1)