Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor") translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor") [: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.001228/0.001228, allocations: 175.6 kB / 8.517 MB, free: 1.859 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.224/1.224, allocations: 221.4 MB / 230.3 MB, free: 7.637 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.0009044/0.0009044, allocations: 81.86 kB / 281.2 MB, free: 5.445 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1821/0.1821, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.971e-06/6.001e-06, allocations: 224 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1204, allocations: 61.91 MB / 0.4941 GB, free: 1.605 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3103/0.4308, allocations: 87.41 MB / 0.5794 GB, free: 9.328 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001948/0.431, allocations: 80.66 kB / 0.5795 GB, free: 9.281 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.008337/0.4394, allocations: 2.598 MB / 0.5821 GB, free: 6.695 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.4394, allocations: 4 kB / 0.5821 GB, free: 6.691 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005703/0.44, allocations: 426 kB / 0.5825 GB, free: 6.234 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.44, allocations: 15.97 kB / 0.5825 GB, free: 6.219 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.993e-05/0.4401, allocations: 7.906 kB / 0.5825 GB, free: 6.211 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/0.4402, allocations: 202.9 kB / 0.5827 GB, free: 5.973 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.4403, allocations: 0 / 0.5827 GB, free: 5.973 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.4403, allocations: 8 kB / 0.5827 GB, free: 5.965 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001331/0.4404, allocations: 43.98 kB / 0.5827 GB, free: 5.922 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.4406, allocations: 114.5 kB / 0.5828 GB, free: 5.797 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.4406, allocations: 0 / 0.5828 GB, free: 5.797 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.4406, allocations: 0 / 0.5828 GB, free: 5.797 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.4407, allocations: 3.906 kB / 0.5828 GB, free: 5.793 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006635/0.4413, allocations: 424.1 kB / 0.5832 GB, free: 5.336 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.935e-05/0.4414, allocations: 41.72 kB / 0.5833 GB, free: 5.289 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.297e-05/0.4415, allocations: 20.95 kB / 0.5833 GB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.4415, allocations: 7.984 kB / 0.5833 GB, free: 5.258 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.4415, allocations: 30.56 kB / 0.5833 GB, free: 5.219 MB / 394.7 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.4415, allocations: 0 / 0.5833 GB, free: 5.219 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007294/0.4423, allocations: 189.1 kB / 0.5835 GB, free: 5.027 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.4423, allocations: 106.8 kB / 0.5836 GB, free: 4.898 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.4425, allocations: 131.3 kB / 0.5838 GB, free: 4.766 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.4425, allocations: 29.7 kB / 0.5838 GB, free: 4.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.136e-05/0.4425, allocations: 108.1 kB / 0.5839 GB, free: 4.617 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.4426, allocations: 23.64 kB / 0.5839 GB, free: 4.594 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-06/0.4426, allocations: 0 / 0.5839 GB, free: 4.594 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.4427, allocations: 322.8 kB / 0.5842 GB, free: 4.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.314e-05/0.4428, allocations: 24 kB / 0.5842 GB, free: 4.246 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.637e-05/0.4428, allocations: 64.28 kB / 0.5843 GB, free: 4.168 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.88e-05/0.4429, allocations: 31.92 kB / 0.5843 GB, free: 4.137 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.82e-07/0.4429, allocations: 0 / 0.5843 GB, free: 4.137 MB / 394.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001882/0.4431, allocations: 105.6 kB / 0.5844 GB, free: 4.027 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.4431, allocations: 7.906 kB / 0.5844 GB, free: 4.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.4431, allocations: 4 kB / 0.5844 GB, free: 4.016 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.4432, allocations: 4.344 kB / 0.5844 GB, free: 4.012 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006656/0.4438, allocations: 92 kB / 0.5845 GB, free: 3.922 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.4451, allocations: 1.343 MB / 0.5858 GB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002417/0.4454, allocations: 36.09 kB / 0.5859 GB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.4454, allocations: 4 kB / 0.5859 GB, free: 2.418 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.914e-05/0.4455, allocations: 104.9 kB / 0.586 GB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.908e-05/0.4455, allocations: 11.91 kB / 0.586 GB, free: 2.297 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001622/0.4457, allocations: 94.16 kB / 0.5861 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.4457, allocations: 0 / 0.5861 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.82e-07/0.4457, allocations: 0 / 0.5861 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.4457, allocations: 0 / 0.5861 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004315/0.4461, allocations: 370.9 kB / 0.5864 GB, free: 1.789 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.4462, allocations: 3.984 kB / 0.5864 GB, free: 1.785 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.4464, allocations: 35.98 kB / 0.5865 GB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.4464, allocations: 4.125 kB / 0.5865 GB, free: 1.746 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.4464, allocations: 4 kB / 0.5865 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4464, allocations: 0 / 0.5865 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4464, allocations: 0 / 0.5865 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001734/0.4466, allocations: 191.3 kB / 0.5867 GB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.182e-05/0.4466, allocations: 85.08 kB / 0.5867 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.714e-05/0.4467, allocations: 7.984 kB / 0.5868 GB, free: 1.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.4469, allocations: 31.98 kB / 0.5868 GB, free: 1.398 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/0.447, allocations: 7.984 kB / 0.5868 GB, free: 1.391 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.447, allocations: 4 kB / 0.5868 GB, free: 1.387 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.473e-05/0.447, allocations: 107.3 kB / 0.5869 GB, free: 1.281 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002578/0.4473, allocations: 24 kB / 0.5869 GB, free: 1.258 MB / 394.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 (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.549e-05/0.4474, allocations: 99.16 kB / 0.587 GB, free: 1.152 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008743/0.4483, allocations: 152 kB / 0.5872 GB, free: 1.004 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4483, allocations: 0 / 0.5872 GB, free: 1.004 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.26e-05/0.4484, allocations: 32 kB / 0.5872 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.4486, allocations: 11.98 kB / 0.5872 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.4498, allocations: 283.3 kB / 0.5875 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003326/0.4502, allocations: 0.7231 MB / 0.5882 GB, free: 15.91 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4502, allocations: 0 / 0.5882 GB, free: 15.91 MB / 410.7 MB Notification: Performance of Templates: time 0.003595/0.4538, allocations: 1.413 MB / 0.5896 GB, free: 14.51 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches