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.001039/0.00104, allocations: 103.9 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.001068/0.001068, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.244/0.244, allocations: 46.09 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 71.89 kB / 417.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.139, allocations: 62.44 MB / 480 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002714/0.1417, allocations: 0.8114 MB / 480.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003248/0.1421, allocations: 51.81 kB / 480.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.1423, allocations: 0 / 480.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.1425, allocations: 7.922 kB / 480.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.44e-05/0.1425, allocations: 3.938 kB / 480.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001393/0.1427, allocations: 15.98 kB / 480.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.1428, allocations: 35.92 kB / 480.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.143, allocations: 27.89 kB / 481 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.564e-05/0.143, allocations: 12 kB / 481 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.42e-05/0.143, allocations: 19.86 kB / 481 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.1431, allocations: 0 / 481 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.345e-05/0.1431, allocations: 4 kB / 481 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.167e-05/0.1431, allocations: 4 kB / 481 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.748e-05/0.1432, allocations: 15.88 kB / 481 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.1433, allocations: 39.88 kB / 481.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1433, allocations: 0 / 481.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1433, allocations: 4 kB / 481.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.1433, allocations: 0 / 481.1 MB, free: 4.266 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.0005266/0.1438, allocations: 351.6 kB / 481.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1439, allocations: 12.03 kB / 481.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.825e-05/0.1439, allocations: 4.844 kB / 481.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.1441, allocations: 172.4 kB / 481.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.1441, allocations: 4.375 kB / 481.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/0.1442, allocations: 4.375 kB / 481.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.1443, allocations: 54.19 kB / 481.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.1443, allocations: 192 / 481.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.1443, allocations: 3.938 kB / 481.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1443, allocations: 0 / 481.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.991e-05/0.1444, allocations: 23.92 kB / 481.7 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005685/0.145, allocations: 288.7 kB / 482 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.284e-05/0.1451, allocations: 30.56 kB / 482 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.046e-05/0.1451, allocations: 8.797 kB / 482 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.816e-06/0.1451, allocations: 4.062 kB / 482 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001489/0.1453, allocations: 55.31 kB / 482.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.1453, allocations: 0 / 482.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001454/0.1454, allocations: 49.69 kB / 482.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.1454, allocations: 51.41 kB / 482.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.844e-05/0.1455, allocations: 121.7 kB / 482.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.1456, allocations: 25.7 kB / 482.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.92e-05/0.1456, allocations: 96.03 kB / 482.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.392e-05/0.1457, allocations: 11.91 kB / 482.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.362e-05/0.1457, allocations: 13.72 kB / 482.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1458, allocations: 322.8 kB / 482.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.827e-05/0.1458, allocations: 3.984 kB / 482.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.838e-05/0.1459, allocations: 25.89 kB / 482.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.972e-05/0.1459, allocations: 21.72 kB / 482.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1459, allocations: 0 / 482.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001038/0.1461, allocations: 61.62 kB / 482.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1461, allocations: 6.5 kB / 482.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1461, allocations: 0 / 482.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1461, allocations: 0 / 482.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.717e-05/0.1462, allocations: 4 kB / 482.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.1462, allocations: 0 / 482.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.333e-05/0.1462, allocations: 7.984 kB / 482.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.1462, allocations: 3.938 kB / 482.9 MB, free: 2.223 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 9.117e-05/0.1463, allocations: 121.8 kB / 483 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.542e-05/0.1463, allocations: 7.906 kB / 483 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.621e-05/0.1464, allocations: 3.906 kB / 483 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1464, allocations: 0 / 483 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1464, allocations: 3.938 kB / 483 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1464, allocations: 0 / 483 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002932/0.1467, allocations: 302.5 kB / 483.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.1467, allocations: 4 kB / 483.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.256e-05/0.1468, allocations: 3.938 kB / 483.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.1468, allocations: 8 kB / 483.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.1468, allocations: 0 / 483.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1468, allocations: 3.938 kB / 483.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1468, allocations: 0 / 483.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001417/0.1469, allocations: 151.4 kB / 483.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/0.147, allocations: 77.48 kB / 483.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.147, allocations: 4.031 kB / 483.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.931e-05/0.1471, allocations: 3.938 kB / 483.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.1471, allocations: 4.062 kB / 483.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.1471, allocations: 7.938 kB / 483.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.656e-05/0.1472, allocations: 91.27 kB / 483.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1472, allocations: 0 / 483.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002274/0.1474, allocations: 15.84 kB / 483.7 MB, free: 1.32 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 0.0001008/0.1476, allocations: 99.17 kB / 483.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.106e-05/0.1476, allocations: 16.23 kB / 483.8 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1477, allocations: 0 / 483.8 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.688e-05/0.1477, allocations: 8.062 kB / 483.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.148, allocations: 18.98 kB / 483.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004401/0.1485, allocations: 137.4 kB / 483.9 MB, free: 1.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.1488, allocations: 0.6924 MB / 484.6 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.44e-05/0.1488, allocations: 0 / 484.6 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.363e-05/0.1488, allocations: 11.44 kB / 484.6 MB, free: 292 kB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1488, allocations: 4 kB / 484.6 MB, free: 288 kB / 350.1 MB Notification: Performance of Templates: time 0.003058/0.1519, allocations: 499.1 kB / 485.1 MB, free: 15.8 MB / 366.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