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.001609/0.001609, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001629/0.001629, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 247.5 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.2334/0.2334, allocations: 46.11 MB / 344.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002189/0.00219, allocations: 81.8 kB / 418.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1258, allocations: 62.44 MB / 480.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002241/0.1281, allocations: 0.8136 MB / 481.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002094/0.1283, allocations: 51.8 kB / 481.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.096e-05/0.1284, allocations: 4 kB / 481.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.1285, allocations: 3.938 kB / 481.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.833e-05/0.1285, allocations: 3.938 kB / 481.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001155/0.1287, allocations: 19.98 kB / 481.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.1288, allocations: 35.92 kB / 481.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.1289, allocations: 15.98 kB / 481.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.203e-05/0.1289, allocations: 11.94 kB / 481.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.899e-05/0.129, allocations: 15.86 kB / 481.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.129, allocations: 4 kB / 481.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.27e-05/0.129, allocations: 4 kB / 481.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.237e-05/0.129, allocations: 7.984 kB / 481.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.408e-05/0.1291, allocations: 19.86 kB / 481.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.331e-05/0.1292, allocations: 35.91 kB / 481.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.1292, allocations: 0 / 481.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1292, allocations: 0 / 481.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.1292, allocations: 0 / 481.8 MB, free: 4.234 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.0004756/0.1297, allocations: 351.6 kB / 482.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1298, allocations: 8.031 kB / 482.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.752e-05/0.1298, allocations: 8.844 kB / 482.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.13, allocations: 180.3 kB / 482.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.779e-06/0.13, allocations: 4.375 kB / 482.3 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.1301, allocations: 12.38 kB / 482.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.1302, allocations: 42.25 kB / 482.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.1302, allocations: 8.109 kB / 482.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.1303, allocations: 15.92 kB / 482.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.1303, allocations: 0 / 482.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.217e-05/0.1303, allocations: 12 kB / 482.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005228/0.1308, allocations: 288.6 kB / 482.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.606e-05/0.1309, allocations: 30.58 kB / 482.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.844e-05/0.1309, allocations: 4.859 kB / 482.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-06/0.1309, allocations: 0 / 482.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001314/0.1311, allocations: 59.31 kB / 482.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.1311, allocations: 0 / 482.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000148/0.1312, allocations: 49.69 kB / 482.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.1313, allocations: 55.41 kB / 482.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1314, allocations: 117.8 kB / 483 MB, free: 2.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.1314, allocations: 25.7 kB / 483 MB, free: 2.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.516e-05/0.1315, allocations: 96.03 kB / 483.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.244e-05/0.1315, allocations: 3.906 kB / 483.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.294e-05/0.1316, allocations: 17.72 kB / 483.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1317, allocations: 318.8 kB / 483.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.007e-05/0.1318, allocations: 8 kB / 483.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.096e-05/0.1318, allocations: 25.66 kB / 483.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.117e-05/0.1318, allocations: 29.7 kB / 483.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1318, allocations: 0 / 483.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.387e-05/0.1319, allocations: 45.64 kB / 483.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.132, allocations: 10.34 kB / 483.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.132, allocations: 3.984 kB / 483.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.132, allocations: 384 / 483.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.27e-05/0.132, allocations: 4 kB / 483.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.132, allocations: 4.031 kB / 483.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.038e-05/0.1321, allocations: 8 kB / 483.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.1321, allocations: 7.875 kB / 483.6 MB, free: 2.18 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.679e-05/0.1322, allocations: 113.8 kB / 483.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.1322, allocations: 3.906 kB / 483.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.899e-05/0.1322, allocations: 15.89 kB / 483.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1323, allocations: 336 / 483.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1323, allocations: 0 / 483.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.1323, allocations: 3.938 kB / 483.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00032/0.1326, allocations: 310.5 kB / 484.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1326, allocations: 0 / 484.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.991e-05/0.1327, allocations: 3.984 kB / 484.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1327, allocations: 0 / 484.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.1327, allocations: 4 kB / 484.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.1327, allocations: 3.938 kB / 484.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1327, allocations: 0 / 484.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001536/0.1328, allocations: 155.4 kB / 484.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.688e-05/0.1329, allocations: 77.11 kB / 484.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.1329, allocations: 0 / 484.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.64e-05/0.133, allocations: 11.97 kB / 484.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.157e-05/0.133, allocations: 3.984 kB / 484.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.133, allocations: 0 / 484.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6e-05/0.1331, allocations: 95.27 kB / 484.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1331, allocations: 0 / 484.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000211/0.1333, allocations: 11.84 kB / 484.4 MB, free: 1.277 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.0001245/0.1335, allocations: 95.31 kB / 484.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.401e-05/0.1336, allocations: 23.92 kB / 484.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1336, allocations: 0 / 484.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.866e-05/0.1336, allocations: 8 kB / 484.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.1339, allocations: 8 kB / 484.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003579/0.1342, allocations: 167.5 kB / 484.7 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1346, allocations: 0.6846 MB / 485.4 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.05e-05/0.1346, allocations: 7.438 kB / 485.4 MB, free: 228 kB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1346, allocations: 3.938 kB / 485.4 MB, free: 224 kB / 350.1 MB Notification: Performance of Templates: time 0.002244/0.1369, allocations: 0.7297 MB / 486.1 MB, free: 15.49 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches