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.00157/0.00157, allocations: 106.4 kB / 17.21 MB, free: 6.27 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.001957/0.001957, allocations: 194 kB / 18.12 MB, free: 5.363 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.461/1.461, allocations: 222.9 MB / 241.8 MB, free: 15.57 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.224/0.224, allocations: 44.18 MB / 336.1 MB, free: 3.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 65 kB / 407.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1281, allocations: 60.84 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00241/0.1306, allocations: 0.8687 MB / 469.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002001/0.1308, allocations: 51.83 kB / 469.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.956e-05/0.1309, allocations: 0 / 469.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.131, allocations: 3.938 kB / 469.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.788e-05/0.1311, allocations: 3.984 kB / 469.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001182/0.1312, allocations: 15.98 kB / 469.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.1313, allocations: 39.86 kB / 469.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.1314, allocations: 19.97 kB / 469.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.331e-05/0.1314, allocations: 12 kB / 469.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.57e-05/0.1315, allocations: 11.86 kB / 469.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.589e-05/0.1315, allocations: 4 kB / 469.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.273e-05/0.1315, allocations: 0 / 469.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.745e-05/0.1316, allocations: 8 kB / 469.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.571e-05/0.1316, allocations: 19.86 kB / 469.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.693e-05/0.1317, allocations: 31.89 kB / 469.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1317, allocations: 4 kB / 469.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.1317, allocations: 0 / 469.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.1317, allocations: 0 / 469.6 MB, free: 13.76 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.0004251/0.1322, allocations: 351.7 kB / 470 MB, free: 13.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.1322, allocations: 12.03 kB / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.1322, allocations: 4.844 kB / 470 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/0.1324, allocations: 176.3 kB / 470.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.1324, allocations: 4.375 kB / 470.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.1325, allocations: 4.375 kB / 470.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.1326, allocations: 54.23 kB / 470.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1326, allocations: 4.125 kB / 470.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.1326, allocations: 3.938 kB / 470.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.1326, allocations: 4 kB / 470.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.367e-05/0.1327, allocations: 19.92 kB / 470.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005301/0.1332, allocations: 292.6 kB / 470.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.202e-05/0.1333, allocations: 22.52 kB / 470.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.899e-05/0.1333, allocations: 16.86 kB / 470.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.1333, allocations: 0 / 470.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001283/0.1335, allocations: 51.41 kB / 470.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1335, allocations: 4 kB / 470.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001344/0.1336, allocations: 49.67 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.1337, allocations: 55.34 kB / 470.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.66e-05/0.1338, allocations: 113.8 kB / 470.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.1338, allocations: 29.7 kB / 470.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.951e-05/0.1338, allocations: 92.03 kB / 470.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.1339, allocations: 15.91 kB / 471 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.1339, allocations: 13.72 kB / 471 MB, free: 12.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.134, allocations: 322.8 kB / 471.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.873e-05/0.1341, allocations: 4 kB / 471.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.474e-05/0.1341, allocations: 17.72 kB / 471.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.718e-05/0.1341, allocations: 21.72 kB / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1342, allocations: 4 kB / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.909e-05/0.1342, allocations: 61.62 kB / 471.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1343, allocations: 4 kB / 471.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1343, allocations: 0 / 471.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.1343, allocations: 4 kB / 471.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.139e-05/0.1343, allocations: 3.984 kB / 471.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.1343, allocations: 4 kB / 471.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.827e-05/0.1344, allocations: 7.844 kB / 471.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/0.1344, allocations: 7.938 kB / 471.4 MB, free: 11.7 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.582e-05/0.1345, allocations: 113.9 kB / 471.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.088e-05/0.1345, allocations: 4 kB / 471.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.232e-05/0.1345, allocations: 3.906 kB / 471.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1345, allocations: 0 / 471.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1345, allocations: 0 / 471.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1346, allocations: 11.92 kB / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000277/0.1348, allocations: 294.5 kB / 471.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1349, allocations: 0 / 471.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.265e-05/0.1349, allocations: 12.31 kB / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1349, allocations: 4 kB / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-06/0.1349, allocations: 3.984 kB / 471.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.646e-06/0.1349, allocations: 3.938 kB / 471.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1349, allocations: 3.938 kB / 471.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.1351, allocations: 147.5 kB / 472 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.993e-05/0.1351, allocations: 81.14 kB / 472.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.1351, allocations: 0 / 472.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.627e-05/0.1352, allocations: 4 kB / 472.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.599e-05/0.1352, allocations: 12.41 kB / 472.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-06/0.1352, allocations: 0 / 472.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.411e-05/0.1353, allocations: 91.27 kB / 472.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1353, allocations: 3.938 kB / 472.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.1355, allocations: 15.91 kB / 472.2 MB, free: 10.8 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 8.66e-05/0.1356, allocations: 91.78 kB / 472.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.193e-05/0.1357, allocations: 15.98 kB / 472.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1357, allocations: 8.062 kB / 472.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.863e-05/0.1357, allocations: 7.984 kB / 472.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.136, allocations: 8 kB / 472.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003582/0.1364, allocations: 163.8 kB / 472.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.1367, allocations: 0.6809 MB / 473.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.674e-05/0.1367, allocations: 12 kB / 473.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.941e-05/0.1367, allocations: 11.44 kB / 473.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1367, allocations: 0 / 473.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of Templates: time 0.00269/0.1394, allocations: 480.7 kB / 473.7 MB, free: 9.281 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