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.001151/0.001151, allocations: 94.55 kB / 17 MB, free: 6.418 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.001524/0.001524, allocations: 189.9 kB / 17.89 MB, free: 5.945 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.443/1.443, allocations: 223.2 MB / 241.9 MB, free: 336 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.2377/0.2377, allocations: 44.25 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003221/0.0003221, allocations: 8 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1341, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002055/0.1362, allocations: 1.563 MB / 473.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000832/0.137, allocations: 0.4991 MB / 473.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.088e-05/0.1371, allocations: 4 kB / 473.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.301e-05/0.1371, allocations: 11.92 kB / 473.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001893/0.1373, allocations: 31.77 kB / 473.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.1376, allocations: 67.03 kB / 473.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001504/0.1377, allocations: 135.4 kB / 473.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.1378, allocations: 28.97 kB / 473.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.138, allocations: 63.77 kB / 474 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.46e-05/0.1381, allocations: 55.75 kB / 474 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.318e-05/0.1381, allocations: 8 kB / 474.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.295e-05/0.1382, allocations: 8 kB / 474.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.185e-05/0.1382, allocations: 23.89 kB / 474.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.543e-05/0.1383, allocations: 49.58 kB / 474.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.1384, allocations: 96.02 kB / 474.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1384, allocations: 0 / 474.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1384, allocations: 0 / 474.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.1384, allocations: 0 / 474.2 MB, free: 11.05 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.0007023/0.1391, allocations: 438.8 kB / 474.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1392, allocations: 8.031 kB / 474.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.353e-05/0.1392, allocations: 15.91 kB / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.1394, allocations: 186.8 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.1394, allocations: 8 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.1395, allocations: 7.953 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003528/0.1398, allocations: 146.7 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1399, allocations: 0 / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.1399, allocations: 0 / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.1399, allocations: 4 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003246/0.1402, allocations: 107.9 kB / 475.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008392/0.1411, allocations: 463.3 kB / 475.6 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002788/0.1414, allocations: 98.52 kB / 475.7 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.1415, allocations: 40.92 kB / 475.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.1415, allocations: 0 / 475.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.1416, allocations: 42.5 kB / 475.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.1416, allocations: 0 / 475.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001322/0.1429, allocations: 373.1 kB / 476.1 MB, free: 8.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/0.143, allocations: 102.8 kB / 476.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.1431, allocations: 152 kB / 476.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.1431, allocations: 25.7 kB / 476.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/0.1432, allocations: 116.1 kB / 476.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.1432, allocations: 11.75 kB / 476.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.388e-06/0.1433, allocations: 4 kB / 476.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1434, allocations: 318.8 kB / 476.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.1436, allocations: 71.89 kB / 476.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.1439, allocations: 108.2 kB / 477 MB, free: 8.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.1441, allocations: 75.98 kB / 477.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.1441, allocations: 0 / 477.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004793/0.1446, allocations: 201.3 kB / 477.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.1446, allocations: 12.02 kB / 477.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1446, allocations: 3.938 kB / 477.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1446, allocations: 4 kB / 477.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005386/0.1452, allocations: 91.84 kB / 477.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.1465, allocations: 1.402 MB / 478.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.1467, allocations: 32 kB / 478.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.1468, allocations: 4 kB / 478.8 MB, free: 6.051 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 0.0001265/0.1469, allocations: 117.8 kB / 478.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.147, allocations: 19.95 kB / 479 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000492/0.1474, allocations: 194.3 kB / 479.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1475, allocations: 0 / 479.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.92e-07/0.1475, allocations: 4 kB / 479.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1475, allocations: 0 / 479.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008136/0.1483, allocations: 490.3 kB / 479.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.1483, allocations: 0 / 479.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.1485, allocations: 35.91 kB / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.1485, allocations: 0 / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.1485, allocations: 0 / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1485, allocations: 4 kB / 479.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1485, allocations: 0 / 479.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000532/0.149, allocations: 267.6 kB / 479.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.281e-05/0.1491, allocations: 93.09 kB / 480 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/0.1491, allocations: 0 / 480 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.1493, allocations: 43.89 kB / 480.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.1494, allocations: 7.984 kB / 480.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.1494, allocations: 0 / 480.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.614e-05/0.1495, allocations: 118.2 kB / 480.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1495, allocations: 0 / 480.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000261/0.1498, allocations: 24 kB / 480.2 MB, free: 4.559 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.000106/0.1499, allocations: 111.2 kB / 480.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008042/0.1507, allocations: 188 kB / 480.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1507, allocations: 0 / 480.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.1509, allocations: 79.89 kB / 480.6 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.1513, allocations: 15.94 kB / 480.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.1525, allocations: 417.5 kB / 481 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1528, allocations: 0.7004 MB / 481.7 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.496e-05/0.1529, allocations: 12.42 kB / 481.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.1529, allocations: 19.42 kB / 481.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of SimCode: time 2.575e-06/0.1529, allocations: 0 / 481.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of Templates: time 0.004593/0.1575, allocations: 1.481 MB / 483.2 MB, free: 1.492 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches