Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") [: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 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 179.6 kB / 8.131 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 221.4 MB / 229.9 MB, free: 2.992 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009626/0.0009623, allocations: 102.2 kB / 280.8 MB, free: 1.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.971e-06/5.991e-06, allocations: 0 / 336.5 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.2136, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09175/0.3054, allocations: 80.66 MB / 467.6 MB, free: 6.109 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.3056, allocations: 79.89 kB / 467.6 MB, free: 6.031 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03297/0.3386, allocations: 11.82 MB / 479.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.3387, allocations: 12 kB / 479.5 MB, free: 10.2 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001322/0.34, allocations: 0.7339 MB / 480.2 MB, free: 9.426 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.34, allocations: 8.031 kB / 480.2 MB, free: 9.418 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.3402, allocations: 63.25 kB / 480.3 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005681/0.3407, allocations: 344.1 kB / 480.6 MB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.3408, allocations: 16 kB / 480.6 MB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.453e-05/0.3409, allocations: 35.98 kB / 480.7 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006107/0.3415, allocations: 310.5 kB / 481 MB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006202/0.3421, allocations: 338 kB / 481.3 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3421, allocations: 0 / 481.3 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.3422, allocations: 0 / 481.3 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.3422, allocations: 12 kB / 481.3 MB, free: 8.277 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002519/0.3447, allocations: 1.501 MB / 482.8 MB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005209/0.3453, allocations: 270.8 kB / 483.1 MB, free: 6.402 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003306/0.3456, allocations: 169 kB / 483.2 MB, free: 6.238 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-05/0.3456, allocations: 4.328 kB / 483.3 MB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.3457, allocations: 38.83 kB / 483.3 MB, free: 6.188 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 3.115e-06/0.3457, allocations: 0 / 483.3 MB, free: 6.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.001925/0.3476, allocations: 0.8266 MB / 484.1 MB, free: 5.348 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.3477, allocations: 67.89 kB / 484.2 MB, free: 5.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.3481, allocations: 313.9 kB / 484.5 MB, free: 4.961 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.3481, allocations: 25.7 kB / 484.5 MB, free: 4.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.3483, allocations: 263.8 kB / 484.8 MB, free: 4.664 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.3484, allocations: 181.2 kB / 484.9 MB, free: 4.484 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-05/0.3484, allocations: 3.938 kB / 485 MB, free: 4.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3486, allocations: 354.8 kB / 485.3 MB, free: 4.125 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.3488, allocations: 133.3 kB / 485.4 MB, free: 3.992 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/0.3491, allocations: 241.9 kB / 485.7 MB, free: 3.715 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.3494, allocations: 179 kB / 485.8 MB, free: 3.543 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3494, allocations: 0 / 485.8 MB, free: 3.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001046/0.3505, allocations: 0.5959 MB / 486.4 MB, free: 2.934 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.3505, allocations: 4 kB / 486.4 MB, free: 2.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.3505, allocations: 7.938 kB / 486.4 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000526/0.3511, allocations: 177.7 kB / 486.6 MB, free: 2.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004957/0.3516, allocations: 119.9 kB / 486.7 MB, free: 2.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003826/0.3554, allocations: 3.671 MB / 490.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/0.3559, allocations: 24.05 kB / 490.4 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.3559, allocations: 32.64 kB / 490.5 MB, free: 14.67 MB / 378.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 (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%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.356, allocations: 120.8 kB / 490.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.718e-05/0.3561, allocations: 43.44 kB / 490.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.3562, allocations: 48.69 kB / 490.7 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3563, allocations: 8 kB / 490.7 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.3563, allocations: 4 kB / 490.7 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3563, allocations: 3.984 kB / 490.7 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.3581, allocations: 1.109 MB / 491.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3581, allocations: 0 / 491.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003311/0.3585, allocations: 87.95 kB / 491.9 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004077/0.3589, allocations: 146.9 kB / 492 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.3589, allocations: 4 kB / 492 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003293/0.3622, allocations: 3.486 MB / 495.5 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.3622, allocations: 0 / 495.5 MB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008751/0.3631, allocations: 0.6344 MB / 496.2 MB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.67e-05/0.3632, allocations: 116.5 kB / 496.3 MB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.916e-05/0.3633, allocations: 7.984 kB / 496.3 MB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003023/0.3636, allocations: 19.98 kB / 496.3 MB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.3637, allocations: 40.3 kB / 496.3 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.3637, allocations: 12 kB / 496.3 MB, free: 8.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002418/0.364, allocations: 240.6 kB / 496.6 MB, free: 8.176 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006664/0.3647, allocations: 120 kB / 496.7 MB, free: 8.059 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000157/0.3648, allocations: 112.8 kB / 496.8 MB, free: 7.938 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009841/0.3658, allocations: 0.6217 MB / 497.4 MB, free: 7.293 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3658, allocations: 4 kB / 497.4 MB, free: 7.289 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005501/0.3664, allocations: 425 kB / 497.8 MB, free: 6.855 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.3667, allocations: 25.58 kB / 497.9 MB, free: 6.832 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.3682, allocations: 0.6415 MB / 498.5 MB, free: 6.156 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005554/0.3687, allocations: 0.9094 MB / 499.4 MB, free: 5.223 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.3688, allocations: 0 / 499.4 MB, free: 5.223 MB / 378.7 MB Notification: Performance of Templates: time 0.01032/0.3791, allocations: 5.227 MB / 0.4928 GB, free: 16 kB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches