Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 103.8 kB / 15.98 MB, free: 6.352 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.00113/0.00113, allocations: 192.5 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3939/0.3939, allocations: 43.5 MB / 313.6 MB, free: 8.539 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 70.56 kB / 382.2 MB, free: 8.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1311, allocations: 57.79 MB / 440 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002655/0.1338, allocations: 0.873 MB / 440.9 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000225/0.1341, allocations: 43.83 kB / 440.9 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.077e-05/0.1342, allocations: 11.88 kB / 440.9 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1343, allocations: 3.938 kB / 440.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.133e-05/0.1344, allocations: 0 / 440.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001215/0.1345, allocations: 19.98 kB / 440.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.1346, allocations: 39.91 kB / 441 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.1348, allocations: 19.97 kB / 441 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.589e-05/0.1348, allocations: 11.94 kB / 441 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.738e-05/0.1348, allocations: 19.92 kB / 441 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.1349, allocations: 0 / 441 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.346e-05/0.1349, allocations: 4 kB / 441 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.1349, allocations: 15.92 kB / 441.1 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.269e-05/0.1349, allocations: 15.88 kB / 441.1 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.1351, allocations: 44.05 kB / 441.1 MB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1351, allocations: 0 / 441.1 MB, free: 13.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1351, allocations: 0 / 441.1 MB, free: 13.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1351, allocations: 0 / 441.1 MB, free: 13.61 MB / 382.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.0004545/0.1355, allocations: 351.4 kB / 441.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.1356, allocations: 11.89 kB / 441.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.1356, allocations: 4.938 kB / 441.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.1358, allocations: 184.2 kB / 441.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.1359, allocations: 4.375 kB / 441.7 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.1359, allocations: 8.375 kB / 441.7 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.136, allocations: 46.25 kB / 441.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.136, allocations: 4.125 kB / 441.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.1361, allocations: 7.938 kB / 441.7 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.1361, allocations: 0 / 441.7 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.007e-05/0.1361, allocations: 16 kB / 441.7 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005342/0.1367, allocations: 292.7 kB / 442 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.72e-05/0.1367, allocations: 22.52 kB / 442 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.881e-05/0.1368, allocations: 12.92 kB / 442.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.1368, allocations: 0 / 442.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001472/0.1369, allocations: 55.41 kB / 442.1 MB, free: 12.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.1369, allocations: 0 / 442.1 MB, free: 12.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001575/0.1371, allocations: 53.53 kB / 442.2 MB, free: 12.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.1372, allocations: 51.41 kB / 442.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.1373, allocations: 129.7 kB / 442.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.1373, allocations: 25.7 kB / 442.4 MB, free: 12.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.1374, allocations: 84.14 kB / 442.5 MB, free: 12.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.1374, allocations: 7.906 kB / 442.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.1374, allocations: 29.7 kB / 442.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.1376, allocations: 318.8 kB / 442.8 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.854e-05/0.1376, allocations: 4 kB / 442.8 MB, free: 11.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.688e-05/0.1377, allocations: 21.7 kB / 442.8 MB, free: 11.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.012e-05/0.1377, allocations: 25.94 kB / 442.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1377, allocations: 0 / 442.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.442e-05/0.1378, allocations: 61.58 kB / 442.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1379, allocations: 4 kB / 442.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.1379, allocations: 4 kB / 442.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.1379, allocations: 0 / 442.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.983e-05/0.138, allocations: 11.94 kB / 442.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.138, allocations: 0 / 442.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.432e-05/0.138, allocations: 3.938 kB / 442.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.809e-06/0.138, allocations: 7.938 kB / 442.9 MB, free: 11.54 MB / 382.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 0.0001008/0.1381, allocations: 105.8 kB / 443 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.174e-05/0.1382, allocations: 15.92 kB / 443.1 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.476e-05/0.1382, allocations: 7.906 kB / 443.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1382, allocations: 4 kB / 443.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1382, allocations: 0 / 443.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1382, allocations: 0 / 443.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003675/0.1386, allocations: 298.5 kB / 443.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1386, allocations: 0 / 443.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.696e-05/0.1387, allocations: 4 kB / 443.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1387, allocations: 0 / 443.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.1387, allocations: 4 kB / 443.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.1387, allocations: 3.938 kB / 443.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.1387, allocations: 4 kB / 443.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002023/0.1389, allocations: 151.5 kB / 443.5 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.336e-05/0.139, allocations: 85.09 kB / 443.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.139, allocations: 0 / 443.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.274e-05/0.1391, allocations: 7.969 kB / 443.6 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.1391, allocations: 3.938 kB / 443.6 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.1392, allocations: 8 kB / 443.6 MB, free: 10.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.69e-05/0.1392, allocations: 95.58 kB / 443.7 MB, free: 10.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1392, allocations: 0 / 443.7 MB, free: 10.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002392/0.1395, allocations: 8 kB / 443.7 MB, free: 10.65 MB / 382.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.0001398/0.1396, allocations: 103.2 kB / 443.8 MB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001315/0.1398, allocations: 19.98 kB / 443.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.1398, allocations: 0 / 443.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.306e-05/0.1398, allocations: 7.938 kB / 443.9 MB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.1401, allocations: 16.05 kB / 443.9 MB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004633/0.1406, allocations: 150.2 kB / 444 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.141, allocations: 0.6885 MB / 444.7 MB, free: 9.605 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.135e-05/0.141, allocations: 0 / 444.7 MB, free: 9.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.598e-05/0.1411, allocations: 11.44 kB / 444.7 MB, free: 9.594 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1411, allocations: 4 kB / 444.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of Templates: time 0.003431/0.1445, allocations: 0.5044 MB / 445.2 MB, free: 9.09 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches