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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.0011, allocations: 92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 182.6 kB / 17.87 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2498/0.2498, allocations: 44.22 MB / 337.1 MB, free: 2.918 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004948/0.0004948, allocations: 8 kB / 409.5 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1412, allocations: 61.93 MB / 471.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002235/0.1435, allocations: 1.524 MB / 473 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007881/0.1443, allocations: 0.4914 MB / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.979e-05/0.1444, allocations: 4 kB / 473.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.102e-05/0.1444, allocations: 7.922 kB / 473.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001773/0.1446, allocations: 35.86 kB / 473.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.1448, allocations: 67.84 kB / 473.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.1449, allocations: 95.81 kB / 473.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.1451, allocations: 28.95 kB / 473.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.1452, allocations: 59.83 kB / 473.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.791e-05/0.1453, allocations: 55.8 kB / 473.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.893e-05/0.1454, allocations: 11.94 kB / 473.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.472e-05/0.1454, allocations: 11.94 kB / 473.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.783e-05/0.1454, allocations: 19.97 kB / 473.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.318e-05/0.1455, allocations: 41.64 kB / 473.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.1456, allocations: 104 kB / 474 MB, free: 11.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1456, allocations: 0 / 474 MB, free: 11.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1456, allocations: 0 / 474 MB, free: 11.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1456, allocations: 0 / 474 MB, free: 11.2 MB / 350.1 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.000721/0.1464, allocations: 434.8 kB / 474.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1464, allocations: 8.031 kB / 474.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.1464, allocations: 11.91 kB / 474.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.1466, allocations: 186.8 kB / 474.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.1466, allocations: 12 kB / 474.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.502e-05/0.1467, allocations: 7.953 kB / 474.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.147, allocations: 150.5 kB / 474.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.147, allocations: 3.938 kB / 474.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.147, allocations: 4 kB / 474.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.1471, allocations: 7.938 kB / 474.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.1474, allocations: 103.9 kB / 474.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007828/0.1482, allocations: 459.3 kB / 475.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.1485, allocations: 98.52 kB / 475.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.1485, allocations: 0 / 475.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.1486, allocations: 34.56 kB / 475.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.1486, allocations: 0 / 475.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001321/0.1499, allocations: 365.2 kB / 475.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.15, allocations: 106.8 kB / 475.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.1501, allocations: 152 kB / 476.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.1501, allocations: 29.7 kB / 476.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.709e-05/0.1502, allocations: 112.1 kB / 476.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.1502, allocations: 15.75 kB / 476.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/0.1502, allocations: 4 kB / 476.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1504, allocations: 322.8 kB / 476.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.1506, allocations: 71.89 kB / 476.6 MB, free: 8.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.1509, allocations: 104.2 kB / 476.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.1511, allocations: 71.98 kB / 476.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1511, allocations: 0 / 476.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005257/0.1516, allocations: 205.3 kB / 477 MB, free: 7.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.1517, allocations: 12.05 kB / 477 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1517, allocations: 7.953 kB / 477 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1517, allocations: 0 / 477 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005614/0.1523, allocations: 91.84 kB / 477.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.1536, allocations: 1.402 MB / 478.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.1538, allocations: 36.09 kB / 478.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.1538, allocations: 7.984 kB / 478.6 MB, free: 6.234 MB / 350.1 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 () * Number of clocked 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 9.697e-05/0.1539, allocations: 113.8 kB / 478.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.319e-05/0.154, allocations: 15.91 kB / 478.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004974/0.1545, allocations: 194.2 kB / 478.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1545, allocations: 0 / 478.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.1545, allocations: 4 kB / 478.9 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1545, allocations: 0 / 478.9 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008163/0.1553, allocations: 486.3 kB / 479.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.1553, allocations: 3.953 kB / 479.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.1555, allocations: 31.97 kB / 479.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1555, allocations: 192 / 479.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.1555, allocations: 8.062 kB / 479.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1555, allocations: 3.938 kB / 479.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1555, allocations: 4 kB / 479.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005238/0.1561, allocations: 271.3 kB / 479.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.592e-05/0.1561, allocations: 92.91 kB / 479.8 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.1562, allocations: 0 / 479.8 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.1564, allocations: 31.97 kB / 479.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.872e-05/0.1565, allocations: 15.92 kB / 479.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/0.1565, allocations: 0 / 479.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.166e-05/0.1566, allocations: 114 kB / 479.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1566, allocations: 0 / 479.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002734/0.1568, allocations: 28 kB / 480 MB, free: 4.742 MB / 350.1 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 () * Number of clocked 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 0.0001039/0.157, allocations: 103.2 kB / 480.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000868/0.1578, allocations: 192.2 kB / 480.2 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.1578, allocations: 0 / 480.2 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002328/0.1581, allocations: 80.09 kB / 480.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.1583, allocations: 11.98 kB / 480.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.1596, allocations: 425.4 kB / 480.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.1599, allocations: 0.7043 MB / 481.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.362e-05/0.16, allocations: 20.41 kB / 481.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.037e-05/0.1601, allocations: 11.44 kB / 481.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1601, allocations: 0 / 481.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of Templates: time 0.003954/0.164, allocations: 1.468 MB / 483 MB, free: 1.684 MB / 350.1 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