Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") [: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 3.2.3+maint.om/package.mo): time 0.002755/0.00276, allocations: 176 kB / 8.147 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.697/1.697, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001198/0.001197, allocations: 93.05 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.969e-06/1.01e-05, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2632, allocations: 47.56 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.3897, allocations: 78.44 MB / 440.3 MB, free: 7.637 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.3901, allocations: 70.02 kB / 440.3 MB, free: 7.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03157/0.4217, allocations: 6.547 MB / 446.9 MB, free: 1.039 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.4217, allocations: 4 kB / 446.9 MB, free: 1.035 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001243/0.423, allocations: 0.5379 MB / 447.4 MB, free: 456 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.4231, allocations: 8.031 kB / 447.4 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.4232, allocations: 35.53 kB / 447.5 MB, free: 412 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/0.4237, allocations: 255.2 kB / 447.7 MB, free: 116 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.975e-05/0.4238, allocations: 16 kB / 447.7 MB, free: 100 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.699e-05/0.4238, allocations: 18.25 kB / 447.7 MB, free: 84 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006272/0.4245, allocations: 181.2 kB / 447.9 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005685/0.425, allocations: 192.8 kB / 448.1 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.4251, allocations: 0 / 448.1 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.4251, allocations: 0 / 448.1 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.4251, allocations: 8 kB / 448.1 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002597/0.4278, allocations: 0.9683 MB / 449.1 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004131/0.4282, allocations: 130.2 kB / 449.2 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/0.4285, allocations: 96.78 kB / 449.3 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.65e-05/0.4286, allocations: 4 kB / 449.3 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.4286, allocations: 42.56 kB / 449.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.876e-06/0.4287, allocations: 0 / 449.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.006235/0.4349, allocations: 1.101 MB / 450.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.435, allocations: 55.41 kB / 450.5 MB, free: 13.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.4353, allocations: 187.1 kB / 450.7 MB, free: 12.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.4354, allocations: 25.7 kB / 450.7 MB, free: 12.92 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.4355, allocations: 230.5 kB / 450.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.4357, allocations: 106.3 kB / 451 MB, free: 12.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.51e-05/0.4357, allocations: 0 / 451 MB, free: 12.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4359, allocations: 334.7 kB / 451.4 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002998/0.4362, allocations: 85.08 kB / 451.5 MB, free: 12.17 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/0.4366, allocations: 154.2 kB / 451.6 MB, free: 12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.4369, allocations: 109.6 kB / 451.7 MB, free: 11.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4369, allocations: 0 / 451.7 MB, free: 11.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002724/0.4397, allocations: 476.7 kB / 452.2 MB, free: 11.42 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.4397, allocations: 4 kB / 452.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.4398, allocations: 4 kB / 452.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.4412, allocations: 187.6 kB / 452.4 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005454/0.4418, allocations: 55.91 kB / 452.4 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007418/0.4492, allocations: 3.564 MB / 456 MB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003978/0.4496, allocations: 7.984 kB / 456 MB, free: 7.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.387e-05/0.4497, allocations: 12 kB / 456 MB, free: 7.359 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.4499, allocations: 36.36 kB / 456 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.45, allocations: 27.62 kB / 456.1 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001277/0.4501, allocations: 34.64 kB / 456.1 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.4501, allocations: 8.062 kB / 456.1 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.4502, allocations: 0 / 456.1 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4502, allocations: 0 / 456.1 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003511/0.4537, allocations: 0.8722 MB / 457 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.884e-06/0.4537, allocations: 0 / 457 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.4542, allocations: 35.98 kB / 457 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/0.4557, allocations: 197.4 kB / 457.2 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/0.4557, allocations: 0 / 457.2 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007259/0.463, allocations: 3.568 MB / 460.8 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.4631, allocations: 0 / 460.8 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003066/0.4661, allocations: 0.6795 MB / 461.5 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.4663, allocations: 104.7 kB / 461.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.432e-05/0.4664, allocations: 0 / 461.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004186/0.4668, allocations: 8 kB / 461.6 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.75e-05/0.4669, allocations: 24.03 kB / 461.6 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.901e-05/0.467, allocations: 15.94 kB / 461.6 MB, free: 1.414 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002237/0.4672, allocations: 153.7 kB / 461.8 MB, free: 1.266 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001023/0.4682, allocations: 84 kB / 461.8 MB, free: 1.184 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002732/0.4686, allocations: 108.2 kB / 461.9 MB, free: 1.066 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.4698, allocations: 471.3 kB / 462.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.4699, allocations: 320 / 462.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007344/0.4706, allocations: 359.6 kB / 462.8 MB, free: 220 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.471, allocations: 12.67 kB / 462.8 MB, free: 200 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.4729, allocations: 0.5003 MB / 463.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005681/0.4735, allocations: 0.8096 MB / 464.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/0.4735, allocations: 0 / 464.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of Templates: time 0.01346/0.487, allocations: 6.397 MB / 470.5 MB, free: 8.445 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SaturatedInductor/SaturatedInductor.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches