Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") [: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.001297/0.001297, allocations: 182.1 kB / 8.132 MB, free: 2.168 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.206/1.206, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.0009671/0.0009672, allocations: 96.23 kB / 280.8 MB, free: 1.312 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.402e-06/6.503e-06, allocations: 0 / 336.5 MB, free: 9.574 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2193, allocations: 50.4 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08611/0.3055, allocations: 80.25 MB / 467.2 MB, free: 6.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.3057, allocations: 83.89 kB / 467.3 MB, free: 6.488 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02594/0.3317, allocations: 10.92 MB / 478.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.3317, allocations: 8 kB / 478.2 MB, free: 11.46 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001238/0.333, allocations: 0.6075 MB / 478.8 MB, free: 10.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.333, allocations: 8.031 kB / 478.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006915/0.3337, allocations: 99.53 kB / 478.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.3341, allocations: 267.2 kB / 479.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.3341, allocations: 12 kB / 479.2 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.3342, allocations: 20 kB / 479.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003921/0.3346, allocations: 217.8 kB / 479.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.335, allocations: 275.8 kB / 479.7 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.3351, allocations: 7.844 kB / 479.7 MB, free: 9.871 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.3351, allocations: 0 / 479.7 MB, free: 9.871 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3351, allocations: 11.94 kB / 479.7 MB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.337, allocations: 1.384 MB / 481.1 MB, free: 8.348 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003198/0.3373, allocations: 195.7 kB / 481.3 MB, free: 8.148 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.3375, allocations: 84.86 kB / 481.3 MB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001157/0.3376, allocations: 97.08 kB / 481.4 MB, free: 7.949 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.3376, allocations: 38.56 kB / 481.5 MB, free: 7.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.292e-06/0.3376, allocations: 0 / 481.5 MB, free: 7.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006344/0.3383, allocations: 243.3 kB / 481.7 MB, free: 7.656 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.049e-05/0.3383, allocations: 55.41 kB / 481.8 MB, free: 7.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.3384, allocations: 149.8 kB / 481.9 MB, free: 7.438 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.3385, allocations: 25.7 kB / 481.9 MB, free: 7.406 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.708e-05/0.3386, allocations: 175.8 kB / 482.1 MB, free: 7.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.16e-05/0.3386, allocations: 78.81 kB / 482.2 MB, free: 7.152 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.3387, allocations: 0 / 482.2 MB, free: 7.152 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3388, allocations: 322.8 kB / 482.5 MB, free: 6.828 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.3389, allocations: 64.56 kB / 482.6 MB, free: 6.762 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.339, allocations: 115.1 kB / 482.7 MB, free: 6.629 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002169/0.3392, allocations: 89.12 kB / 482.8 MB, free: 6.543 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3393, allocations: 0 / 482.8 MB, free: 6.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006085/0.3399, allocations: 309.5 kB / 483.1 MB, free: 6.234 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.3399, allocations: 4 kB / 483.1 MB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.3399, allocations: 4 kB / 483.1 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002872/0.3402, allocations: 76.94 kB / 483.2 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.3404, allocations: 35.98 kB / 483.2 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.3422, allocations: 1.712 MB / 484.9 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.3423, allocations: 23.69 kB / 484.9 MB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.3423, allocations: 12 kB / 484.9 MB, free: 4.246 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 9.193e-05/0.3424, allocations: 116.2 kB / 485 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.22e-05/0.3425, allocations: 15.81 kB / 485.1 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006279/0.3431, allocations: 275 kB / 485.3 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3431, allocations: 11.88 kB / 485.3 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3431, allocations: 0 / 485.3 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3432, allocations: 0 / 485.3 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009604/0.3441, allocations: 0.651 MB / 486 MB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3441, allocations: 0 / 486 MB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.3443, allocations: 23.98 kB / 486 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002378/0.3445, allocations: 72.75 kB / 486.1 MB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.3445, allocations: 0 / 486.1 MB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001627/0.3462, allocations: 1.72 MB / 487.8 MB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3462, allocations: 3.906 kB / 487.8 MB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007487/0.347, allocations: 438.6 kB / 488.2 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.509e-05/0.3471, allocations: 108.8 kB / 488.3 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.593e-05/0.3471, allocations: 0 / 488.3 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.3472, allocations: 4 kB / 488.4 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.134e-05/0.3473, allocations: 15.97 kB / 488.4 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.3473, allocations: 4 kB / 488.4 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.399e-05/0.3474, allocations: 112.9 kB / 488.5 MB, free: 496 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004726/0.3478, allocations: 91.69 kB / 488.6 MB, free: 404 kB / 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.000218/0.3481, allocations: 131.7 kB / 488.7 MB, free: 260 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005378/0.3486, allocations: 309.6 kB / 489 MB, free: 15.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3486, allocations: 0 / 489 MB, free: 15.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000307/0.3489, allocations: 221.5 kB / 489.2 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.3492, allocations: 11.91 kB / 489.2 MB, free: 15.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008682/0.35, allocations: 390.9 kB / 489.6 MB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/0.3504, allocations: 0.7744 MB / 490.4 MB, free: 14.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3504, allocations: 0 / 490.4 MB, free: 14.5 MB / 378.7 MB Notification: Performance of Templates: time 0.006204/0.3566, allocations: 2.902 MB / 493.3 MB, free: 11.63 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches