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: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") [: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.001348/0.001348, allocations: 191.1 kB / 8.534 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.28/1.28, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008746/0.0008746, allocations: 91.95 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.406e-06/8.436e-06, allocations: 4 kB / 343.1 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0815/0.08153, allocations: 51.47 MB / 394.6 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2241/0.3057, allocations: 80.98 MB / 475.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.3059, allocations: 85.73 kB / 475.7 MB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01918/0.3251, allocations: 7.999 MB / 483.7 MB, free: 5.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3251, allocations: 8 kB / 483.7 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0007555/0.3259, allocations: 0.5783 MB / 484.3 MB, free: 4.992 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.3259, allocations: 8.031 kB / 484.3 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.05e-05/0.326, allocations: 44.77 kB / 484.3 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.3263, allocations: 266.8 kB / 484.6 MB, free: 4.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.3263, allocations: 15.19 kB / 484.6 MB, free: 4.648 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.572e-05/0.3263, allocations: 16 kB / 484.6 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003023/0.3266, allocations: 186.5 kB / 484.8 MB, free: 4.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.327, allocations: 213.8 kB / 485 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.327, allocations: 0 / 485 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.327, allocations: 0.9375 kB / 485 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.327, allocations: 8 kB / 485 MB, free: 4.348 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.3283, allocations: 1.074 MB / 486.1 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.3285, allocations: 115.8 kB / 486.2 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.672e-05/0.3286, allocations: 50.08 kB / 486.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.3286, allocations: 7.984 kB / 486.2 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.196e-05/0.3286, allocations: 35.38 kB / 486.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.044e-06/0.3286, allocations: 7.938 kB / 486.3 MB, free: 3.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008147/0.3295, allocations: 373.3 kB / 486.7 MB, free: 2.855 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.316e-05/0.3295, allocations: 55.59 kB / 486.7 MB, free: 2.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.3296, allocations: 213 kB / 486.9 MB, free: 2.613 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.3297, allocations: 33.69 kB / 486.9 MB, free: 2.574 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.225e-05/0.3297, allocations: 206.9 kB / 487.2 MB, free: 2.387 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.3298, allocations: 78.34 kB / 487.2 MB, free: 2.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.215e-05/0.3298, allocations: 4 kB / 487.2 MB, free: 2.312 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.372e-05/0.3298, allocations: 338.5 kB / 487.6 MB, free: 1.984 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.412e-05/0.3299, allocations: 58.94 kB / 487.6 MB, free: 1.949 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.3301, allocations: 162 kB / 487.8 MB, free: 1.781 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001164/0.3302, allocations: 80.95 kB / 487.9 MB, free: 1.727 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.3302, allocations: 0 / 487.9 MB, free: 1.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003999/0.3306, allocations: 303 kB / 488.2 MB, free: 1.477 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.3306, allocations: 7.438 kB / 488.2 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3306, allocations: 4 kB / 488.2 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001982/0.3308, allocations: 57.38 kB / 488.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003147/0.3312, allocations: 83.7 kB / 488.3 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.3326, allocations: 2.515 MB / 490.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.3329, allocations: 28.08 kB / 490.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.3329, allocations: 12 kB / 490.9 MB, free: 14.64 MB / 362.7 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.124e-05/0.333, allocations: 112.9 kB / 491 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.767e-05/0.3331, allocations: 27.62 kB / 491 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.918e-05/0.3331, allocations: 25.05 kB / 491 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3331, allocations: 4 kB / 491 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3332, allocations: 0 / 491 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.3332, allocations: 5.031 kB / 491 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/0.3335, allocations: 281.9 kB / 491.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3335, allocations: 0 / 491.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/0.3337, allocations: 47.91 kB / 491.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001466/0.3339, allocations: 57.02 kB / 491.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.3339, allocations: 0 / 491.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/0.3355, allocations: 2.512 MB / 493.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3355, allocations: 7.906 kB / 493.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003602/0.3359, allocations: 303.3 kB / 494.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.541e-05/0.336, allocations: 96.39 kB / 494.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.336, allocations: 3.984 kB / 494.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.3362, allocations: 22.33 kB / 494.3 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.649e-05/0.3363, allocations: 7.984 kB / 494.3 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.3363, allocations: 15.3 kB / 494.4 MB, free: 11.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001335/0.3365, allocations: 166.1 kB / 494.5 MB, free: 10.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003434/0.3368, allocations: 60 kB / 494.6 MB, free: 10.86 MB / 362.7 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.000134/0.337, allocations: 103.2 kB / 494.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005179/0.3375, allocations: 395.5 kB / 495.1 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3375, allocations: 0 / 495.1 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003234/0.3378, allocations: 295.4 kB / 495.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.338, allocations: 20.28 kB / 495.4 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007354/0.3388, allocations: 344.3 kB / 495.7 MB, free: 9.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003806/0.3392, allocations: 0.8119 MB / 496.5 MB, free: 8.934 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3392, allocations: 0 / 496.5 MB, free: 8.934 MB / 362.7 MB Notification: Performance of Templates: time 0.005925/0.3451, allocations: 2.819 MB / 499.3 MB, free: 6.18 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches