Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.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 trunk/package.mo): time 0.001193/0.001193, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008558/0.0008558, allocations: 89.17 kB / 286.3 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.77e-06/5.901e-06, allocations: 0 / 343.1 MB, free: 8.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1085, allocations: 51.49 MB / 394.6 MB, free: 5.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2507/0.3593, allocations: 81.25 MB / 475.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.3596, allocations: 77.75 kB / 475.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0172/0.3768, allocations: 6.955 MB / 482.9 MB, free: 6.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.3768, allocations: 11.19 kB / 482.9 MB, free: 6.152 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0007722/0.3776, allocations: 0.5394 MB / 483.5 MB, free: 5.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3777, allocations: 12.02 kB / 483.5 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.3779, allocations: 49.59 kB / 483.5 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.3782, allocations: 270.6 kB / 483.8 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.3783, allocations: 8 kB / 483.8 MB, free: 5.238 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.592e-05/0.3783, allocations: 16 kB / 483.8 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002989/0.3786, allocations: 174.3 kB / 484 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.3789, allocations: 195 kB / 484.2 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3789, allocations: 0 / 484.2 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.379, allocations: 0 / 484.2 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.379, allocations: 8 kB / 484.2 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.3803, allocations: 0.9549 MB / 485.1 MB, free: 4.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.3805, allocations: 133.2 kB / 485.3 MB, free: 4.008 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.3806, allocations: 91.62 kB / 485.3 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.3807, allocations: 8.031 kB / 485.4 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.468e-05/0.3807, allocations: 38.5 kB / 485.4 MB, free: 3.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.302e-06/0.3807, allocations: 4 kB / 485.4 MB, free: 3.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.003238/0.3839, allocations: 1.096 MB / 486.5 MB, free: 2.918 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.879e-05/0.384, allocations: 59.41 kB / 486.5 MB, free: 2.848 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.3841, allocations: 194.5 kB / 486.7 MB, free: 2.676 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.3842, allocations: 25.7 kB / 486.8 MB, free: 2.645 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.165e-05/0.3842, allocations: 163.7 kB / 486.9 MB, free: 2.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/0.3843, allocations: 109.4 kB / 487 MB, free: 2.395 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.5e-05/0.3843, allocations: 0 / 487 MB, free: 2.395 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.957e-05/0.3843, allocations: 332.3 kB / 487.4 MB, free: 2.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3845, allocations: 91.98 kB / 487.4 MB, free: 2.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.3846, allocations: 143.1 kB / 487.6 MB, free: 1.906 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.3848, allocations: 104.8 kB / 487.7 MB, free: 1.844 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.3848, allocations: 0 / 487.7 MB, free: 1.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001376/0.3862, allocations: 0.4909 MB / 488.2 MB, free: 1.445 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.3862, allocations: 8 kB / 488.2 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3862, allocations: 0 / 488.2 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007921/0.387, allocations: 190.2 kB / 488.4 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002593/0.3873, allocations: 51.95 kB / 488.4 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004094/0.3914, allocations: 3.577 MB / 492 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.3917, allocations: 8 kB / 492 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.3918, allocations: 11.98 kB / 492 MB, free: 13.86 MB / 362.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.0001246/0.3919, allocations: 112.3 kB / 492.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.861e-05/0.392, allocations: 36.94 kB / 492.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.042e-05/0.3921, allocations: 34.08 kB / 492.2 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3921, allocations: 4 kB / 492.2 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.3921, allocations: 3.938 kB / 492.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.3921, allocations: 5.922 kB / 492.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001925/0.394, allocations: 0.8634 MB / 493.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.394, allocations: 0 / 493.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.3943, allocations: 47.52 kB / 493.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008023/0.3951, allocations: 185 kB / 493.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.3951, allocations: 5.406 kB / 493.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004183/0.3993, allocations: 3.566 MB / 496.9 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3994, allocations: 0 / 496.9 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001699/0.4011, allocations: 0.6759 MB / 497.5 MB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.4012, allocations: 113.3 kB / 497.7 MB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/0.4012, allocations: 4 kB / 497.7 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.4015, allocations: 8.062 kB / 497.7 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.495e-05/0.4016, allocations: 15.97 kB / 497.7 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/0.4016, allocations: 11.19 kB / 497.7 MB, free: 8.699 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001709/0.4018, allocations: 155 kB / 497.8 MB, free: 8.574 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006545/0.4025, allocations: 84 kB / 497.9 MB, free: 8.492 MB / 362.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.0002166/0.4027, allocations: 116.7 kB / 498 MB, free: 8.371 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007584/0.4035, allocations: 478.9 kB / 498.5 MB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.4035, allocations: 0 / 498.5 MB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004263/0.4039, allocations: 355 kB / 498.9 MB, free: 7.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.4042, allocations: 22.2 kB / 498.9 MB, free: 7.645 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.4053, allocations: 476.8 kB / 499.3 MB, free: 7.211 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.4057, allocations: 0.8058 MB / 0.4884 GB, free: 6.383 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4057, allocations: 0 / 0.4884 GB, free: 6.383 MB / 362.7 MB Notification: Performance of Templates: time 0.009703/0.4154, allocations: 5.528 MB / 0.4938 GB, free: 0.9453 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches