Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 90 kB / 17.35 MB, free: 6.027 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.001419/0.001419, allocations: 178.5 kB / 18.26 MB, free: 5.387 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.308/1.308, allocations: 223.3 MB / 242.3 MB, free: 14.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1836/0.1836, allocations: 44.25 MB / 337.7 MB, free: 2.418 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003314/0.0003314, allocations: 8.719 kB / 410.3 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1309, allocations: 61.92 MB / 472.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001212/0.1321, allocations: 0.5299 MB / 472.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002325/0.1324, allocations: 47.83 kB / 472.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.013e-05/0.1325, allocations: 0 / 472.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.1326, allocations: 11.92 kB / 472.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.147e-05/0.1327, allocations: 3.938 kB / 472.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001242/0.1328, allocations: 11.98 kB / 472.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001907/0.133, allocations: 39.91 kB / 472.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.1331, allocations: 12 kB / 472.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.154e-05/0.1332, allocations: 19.92 kB / 472.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.736e-05/0.1332, allocations: 3.938 kB / 472.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.1332, allocations: 7.938 kB / 472.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.232e-05/0.1333, allocations: 3.938 kB / 472.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.983e-05/0.1333, allocations: 0 / 472.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.373e-05/0.1334, allocations: 45.56 kB / 473 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.194e-05/0.1335, allocations: 35.88 kB / 473 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1335, allocations: 0 / 473 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1335, allocations: 0 / 473 MB, free: 12.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1335, allocations: 0 / 473 MB, free: 12.55 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.0006245/0.1341, allocations: 339.7 kB / 473.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1342, allocations: 8.031 kB / 473.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.092e-05/0.1342, allocations: 4.938 kB / 473.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.1344, allocations: 188.1 kB / 473.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.1344, allocations: 4.375 kB / 473.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.282e-05/0.1345, allocations: 4.375 kB / 473.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/0.1346, allocations: 50.25 kB / 473.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.1346, allocations: 192 / 473.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.1346, allocations: 7.938 kB / 473.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.1346, allocations: 4 kB / 473.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.542e-05/0.1347, allocations: 12 kB / 473.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005449/0.1352, allocations: 296.7 kB / 473.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.514e-05/0.1353, allocations: 22.58 kB / 473.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.896e-05/0.1353, allocations: 8.922 kB / 473.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.908e-06/0.1353, allocations: 7.984 kB / 474 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001205/0.1355, allocations: 47.41 kB / 474 MB, free: 11.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 3.266e-06/0.1355, allocations: 3.938 kB / 474 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000154/0.1356, allocations: 61.53 kB / 474.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.1357, allocations: 51.41 kB / 474.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.327e-05/0.1358, allocations: 113.8 kB / 474.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.1358, allocations: 33.7 kB / 474.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.1359, allocations: 88.14 kB / 474.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.417e-05/0.1359, allocations: 3.906 kB / 474.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.606e-05/0.136, allocations: 17.7 kB / 474.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.1362, allocations: 319.2 kB / 474.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.644e-05/0.1362, allocations: 4 kB / 474.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.948e-05/0.1362, allocations: 25.64 kB / 474.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.202e-05/0.1363, allocations: 21.72 kB / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.1363, allocations: 11.94 kB / 474.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001967/0.1365, allocations: 57.53 kB / 474.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1365, allocations: 10.81 kB / 474.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.1365, allocations: 0 / 474.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.1365, allocations: 0 / 474.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.666e-05/0.1366, allocations: 4 kB / 474.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1366, allocations: 0 / 474.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.125e-05/0.1366, allocations: 4 kB / 474.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.1366, allocations: 3.938 kB / 474.8 MB, free: 10.51 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 7.602e-05/0.1367, allocations: 117.9 kB / 474.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.299e-05/0.1367, allocations: 3.906 kB / 474.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.631e-05/0.1368, allocations: 11.89 kB / 475 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1368, allocations: 0 / 475 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1368, allocations: 0 / 475 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1368, allocations: 0 / 475 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004831/0.1373, allocations: 310.4 kB / 475.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1373, allocations: 0 / 475.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.329e-05/0.1373, allocations: 0 / 475.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1374, allocations: 8 kB / 475.3 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.974e-06/0.1374, allocations: 0 / 475.3 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.1374, allocations: 3.938 kB / 475.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1374, allocations: 0 / 475.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/0.1375, allocations: 151.8 kB / 475.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.1376, allocations: 85.17 kB / 475.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.1376, allocations: 7.922 kB / 475.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.785e-05/0.1377, allocations: 8 kB / 475.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.1377, allocations: 4 kB / 475.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.1378, allocations: 4 kB / 475.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.148e-05/0.1378, allocations: 91.27 kB / 475.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1378, allocations: 0 / 475.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002239/0.1381, allocations: 8 kB / 475.6 MB, free: 9.609 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.307e-05/0.1382, allocations: 95.78 kB / 475.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.99e-05/0.1382, allocations: 19.92 kB / 475.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1383, allocations: 4.344 kB / 475.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.068e-05/0.1383, allocations: 8 kB / 475.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.1386, allocations: 15.92 kB / 475.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003241/0.1389, allocations: 154.6 kB / 475.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.1392, allocations: 0.6848 MB / 476.6 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.389e-05/0.1392, allocations: 8 kB / 476.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.171e-05/0.1392, allocations: 7.438 kB / 476.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1392, allocations: 0 / 476.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of Templates: time 0.002835/0.1421, allocations: 477.7 kB / 477.1 MB, free: 8.09 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches