Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001511/0.001511, allocations: 115.8 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001815/0.001815, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2196/0.2196, allocations: 46.1 MB / 343.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002633/0.002633, allocations: 77.78 kB / 417 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1423, allocations: 62.46 MB / 479.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002123/0.1445, allocations: 0.8644 MB / 480.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001908/0.1447, allocations: 51.81 kB / 480.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.951e-05/0.1448, allocations: 4 kB / 480.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.1449, allocations: 11.92 kB / 480.4 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.723e-05/0.145, allocations: 0 / 480.4 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001096/0.1451, allocations: 15.98 kB / 480.4 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.1452, allocations: 31.92 kB / 480.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.1453, allocations: 12 kB / 480.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.378e-05/0.1453, allocations: 15.92 kB / 480.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.17e-05/0.1454, allocations: 15.88 kB / 480.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.1454, allocations: 4 kB / 480.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.292e-05/0.1454, allocations: 4 kB / 480.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.097e-05/0.1455, allocations: 11.97 kB / 480.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.29e-05/0.1455, allocations: 19.88 kB / 480.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.49e-05/0.1456, allocations: 31.91 kB / 480.6 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1456, allocations: 3.984 kB / 480.6 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1456, allocations: 0 / 480.6 MB, free: 4.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1456, allocations: 0 / 480.6 MB, free: 4.52 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000412/0.146, allocations: 343.7 kB / 480.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.1461, allocations: 8.031 kB / 480.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/0.1461, allocations: 16.77 kB / 480.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.1463, allocations: 176.4 kB / 481.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.1463, allocations: 8.375 kB / 481.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.1463, allocations: 384 / 481.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.1465, allocations: 54.23 kB / 481.2 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.1465, allocations: 4.125 kB / 481.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.1465, allocations: 3.938 kB / 481.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.1465, allocations: 4 kB / 481.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.391e-05/0.1466, allocations: 12 kB / 481.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004918/0.1471, allocations: 296.6 kB / 481.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.349e-05/0.1471, allocations: 26.56 kB / 481.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.1e-05/0.1472, allocations: 12.91 kB / 481.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.1472, allocations: 0 / 481.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001208/0.1473, allocations: 59.25 kB / 481.6 MB, free: 3.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.373e-06/0.1473, allocations: 0 / 481.6 MB, free: 3.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001498/0.1475, allocations: 49.7 kB / 481.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.1475, allocations: 55.39 kB / 481.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.814e-05/0.1476, allocations: 121.8 kB / 481.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1477, allocations: 29.64 kB / 481.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.062e-05/0.1477, allocations: 88.05 kB / 481.9 MB, free: 2.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.452e-05/0.1477, allocations: 7.906 kB / 481.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/0.1478, allocations: 21.7 kB / 481.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.1479, allocations: 314.8 kB / 482.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.816e-05/0.1479, allocations: 12 kB / 482.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.202e-05/0.1479, allocations: 17.7 kB / 482.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.115e-05/0.148, allocations: 25.72 kB / 482.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.148, allocations: 0 / 482.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.103e-05/0.1481, allocations: 53.62 kB / 482.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.1481, allocations: 8 kB / 482.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1481, allocations: 0 / 482.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.1481, allocations: 4.031 kB / 482.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.352e-05/0.1482, allocations: 4 kB / 482.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.1482, allocations: 0 / 482.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.878e-05/0.1482, allocations: 0 / 482.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.854e-06/0.1482, allocations: 7.938 kB / 482.4 MB, free: 2.473 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 prepare postOptimizeDAE: time 8.288e-05/0.1483, allocations: 121.8 kB / 482.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.203e-05/0.1483, allocations: 7.906 kB / 482.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.268e-05/0.1484, allocations: 7.906 kB / 482.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.1484, allocations: 4 kB / 482.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1484, allocations: 4 kB / 482.5 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1484, allocations: 3.938 kB / 482.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002797/0.1487, allocations: 298.6 kB / 482.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1487, allocations: 0 / 482.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.049e-05/0.1487, allocations: 4 kB / 482.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.1487, allocations: 0 / 482.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.1488, allocations: 0 / 482.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1488, allocations: 7.875 kB / 482.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.1488, allocations: 4 kB / 482.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000159/0.1489, allocations: 155.8 kB / 483 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.622e-05/0.149, allocations: 81.09 kB / 483.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.149, allocations: 384 / 483.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.949e-05/0.1491, allocations: 7.969 kB / 483.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.496e-05/0.1491, allocations: 4 kB / 483.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.1491, allocations: 0 / 483.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.244e-05/0.1492, allocations: 95.2 kB / 483.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1492, allocations: 0 / 483.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002255/0.1494, allocations: 19.91 kB / 483.2 MB, free: 1.559 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 9.584e-05/0.1495, allocations: 91.25 kB / 483.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.1496, allocations: 19.92 kB / 483.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.1496, allocations: 4 kB / 483.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.098e-05/0.1497, allocations: 8 kB / 483.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.1499, allocations: 10.48 kB / 483.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003241/0.1503, allocations: 157.7 kB / 483.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.1506, allocations: 0.6846 MB / 484.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.717e-05/0.1506, allocations: 4 kB / 484.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.329e-05/0.1506, allocations: 7.438 kB / 484.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1506, allocations: 0 / 484.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of Templates: time 0.002657/0.1533, allocations: 480.9 kB / 484.6 MB, free: 52 kB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches