Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor") translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001093/0.001093, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2287/0.2287, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 79.62 kB / 417.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1308, allocations: 62.44 MB / 480 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003012/0.1338, allocations: 1.903 MB / 481.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009838/0.1348, allocations: 0.5961 MB / 482.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.019e-05/0.1349, allocations: 0 / 482.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.201e-05/0.135, allocations: 11.86 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.1352, allocations: 35.72 kB / 482.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.1354, allocations: 91.73 kB / 482.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001413/0.1356, allocations: 151.4 kB / 482.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.1357, allocations: 29.12 kB / 482.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.1359, allocations: 83.62 kB / 482.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.136, allocations: 59.75 kB / 483 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.1361, allocations: 19.94 kB / 483 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.004e-05/0.1362, allocations: 20 kB / 483 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.292e-05/0.1362, allocations: 27.91 kB / 483 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.901e-05/0.1363, allocations: 63.66 kB / 483.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.1364, allocations: 139.8 kB / 483.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1364, allocations: 0 / 483.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1365, allocations: 4 kB / 483.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1365, allocations: 0 / 483.2 MB, free: 2.082 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.0007955/0.1373, allocations: 451 kB / 483.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.1373, allocations: 8.031 kB / 483.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.1376, allocations: 48.72 kB / 483.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.1378, allocations: 190.4 kB / 483.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.1378, allocations: 8.375 kB / 483.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.1379, allocations: 8.312 kB / 483.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.1382, allocations: 136.4 kB / 484.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1382, allocations: 0 / 484.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.1383, allocations: 8 kB / 484.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.1383, allocations: 4 kB / 484.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003239/0.1386, allocations: 91.92 kB / 484.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008513/0.1395, allocations: 459.3 kB / 484.6 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002976/0.1398, allocations: 94.45 kB / 484.7 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.1399, allocations: 40.92 kB / 484.8 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.14, allocations: 0 / 484.8 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.14, allocations: 30.56 kB / 484.8 MB, free: 372 kB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.14, allocations: 0 / 484.8 MB, free: 372 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001366/0.1414, allocations: 325.1 kB / 485.1 MB, free: 40 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.14e-05/0.1415, allocations: 106.8 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.1416, allocations: 144.2 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.1416, allocations: 29.7 kB / 485.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.855e-05/0.1417, allocations: 120.1 kB / 485.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.1418, allocations: 19.7 kB / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/0.1418, allocations: 25.7 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1419, allocations: 318.8 kB / 485.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002346/0.1422, allocations: 59.94 kB / 485.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002639/0.1425, allocations: 100.2 kB / 486 MB, free: 15.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004358/0.1429, allocations: 138.5 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.1429, allocations: 4.125 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005146/0.1434, allocations: 173.4 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.1435, allocations: 15.88 kB / 486.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1435, allocations: 0 / 486.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.1435, allocations: 0 / 486.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005882/0.1441, allocations: 91.91 kB / 486.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.1457, allocations: 1.493 MB / 487.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.1459, allocations: 32.12 kB / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.1459, allocations: 4 kB / 487.9 MB, free: 12.96 MB / 366.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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001297/0.1461, allocations: 121.7 kB / 488.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.1461, allocations: 11.91 kB / 488.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000502/0.1466, allocations: 174.2 kB / 488.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1466, allocations: 288 / 488.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.92e-07/0.1466, allocations: 0 / 488.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.1467, allocations: 3.984 kB / 488.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008155/0.1475, allocations: 462.3 kB / 488.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1475, allocations: 0 / 488.7 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.1477, allocations: 31.97 kB / 488.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1477, allocations: 0 / 488.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.1477, allocations: 0 / 488.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.1477, allocations: 3.938 kB / 488.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1477, allocations: 4 kB / 488.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004994/0.1482, allocations: 251.4 kB / 489 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.76e-05/0.1483, allocations: 89.02 kB / 489.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.1483, allocations: 0 / 489.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.1485, allocations: 31.91 kB / 489.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.1486, allocations: 7.984 kB / 489.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.1486, allocations: 0 / 489.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.778e-05/0.1487, allocations: 118 kB / 489.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1487, allocations: 4 kB / 489.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000266/0.1489, allocations: 24 kB / 489.3 MB, free: 11.55 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001147/0.1491, allocations: 103.2 kB / 489.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008757/0.1499, allocations: 171.9 kB / 489.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.15, allocations: 0 / 489.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002586/0.1502, allocations: 59.95 kB / 489.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.1506, allocations: 23.92 kB / 489.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.152, allocations: 380.9 kB / 490 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.1523, allocations: 0.7041 MB / 490.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.111e-05/0.1524, allocations: 16.42 kB / 490.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.299e-05/0.1524, allocations: 11.44 kB / 490.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1524, allocations: 0 / 490.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of Templates: time 0.005173/0.1576, allocations: 1.705 MB / 492.4 MB, free: 8.332 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches