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.001143/0.001143, allocations: 110.1 kB / 18.3 MB, free: 4.883 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.001057/0.001057, allocations: 195.2 kB / 19.23 MB, free: 3.957 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.432/1.432, allocations: 222.9 MB / 242.9 MB, free: 15.2 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.205/0.205, allocations: 44.18 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 59.02 kB / 409.1 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1311, allocations: 60.83 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002662/0.1338, allocations: 0.7964 MB / 470.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002472/0.1341, allocations: 51.81 kB / 470.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.959e-05/0.1342, allocations: 0 / 470.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.1344, allocations: 11.88 kB / 470.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.513e-05/0.1344, allocations: 3.984 kB / 470.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.1345, allocations: 19.92 kB / 470.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.1347, allocations: 35.92 kB / 470.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.1348, allocations: 27.95 kB / 470.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.558e-05/0.1348, allocations: 11.94 kB / 470.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.988e-05/0.1349, allocations: 19.86 kB / 470.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.1349, allocations: 7.938 kB / 470.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.206e-05/0.1349, allocations: 0 / 470.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.135, allocations: 8 kB / 470.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.083e-05/0.135, allocations: 19.88 kB / 470.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.1351, allocations: 39.88 kB / 471 MB, free: 13.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1351, allocations: 0 / 471 MB, free: 13.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1351, allocations: 0 / 471 MB, free: 13.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1352, allocations: 0 / 471 MB, free: 13.32 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.0004955/0.1357, allocations: 347.7 kB / 471.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.1357, allocations: 8.031 kB / 471.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.631e-05/0.1358, allocations: 8.844 kB / 471.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.136, allocations: 176.3 kB / 471.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.136, allocations: 12.38 kB / 471.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.1361, allocations: 384 / 471.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.1362, allocations: 54.19 kB / 471.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.1362, allocations: 192 / 471.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.1362, allocations: 3.938 kB / 471.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1362, allocations: 4 kB / 471.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.662e-05/0.1363, allocations: 15.98 kB / 471.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005822/0.1369, allocations: 300.6 kB / 471.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.729e-05/0.1369, allocations: 22.52 kB / 471.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.117e-05/0.137, allocations: 12.92 kB / 471.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-06/0.137, allocations: 0 / 471.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000144/0.1371, allocations: 51.41 kB / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.1371, allocations: 0 / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001558/0.1373, allocations: 53.62 kB / 472 MB, free: 12.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.1374, allocations: 51.41 kB / 472.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.1375, allocations: 117.8 kB / 472.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.1375, allocations: 25.7 kB / 472.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.78e-05/0.1376, allocations: 96.03 kB / 472.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.1376, allocations: 7.906 kB / 472.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.884e-05/0.1376, allocations: 14.09 kB / 472.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1378, allocations: 322.8 kB / 472.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.827e-05/0.1378, allocations: 8 kB / 472.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.759e-05/0.1378, allocations: 17.91 kB / 472.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.607e-05/0.1379, allocations: 33.67 kB / 472.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1379, allocations: 4 kB / 472.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.803e-05/0.138, allocations: 53.62 kB / 472.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.138, allocations: 8 kB / 472.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.138, allocations: 0 / 472.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.138, allocations: 4.031 kB / 472.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.212e-05/0.1381, allocations: 7.984 kB / 472.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1381, allocations: 0 / 472.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.329e-05/0.1381, allocations: 7.906 kB / 472.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.1381, allocations: 3.938 kB / 472.8 MB, free: 11.27 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.641e-05/0.1382, allocations: 113.8 kB / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.14e-05/0.1383, allocations: 0 / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.071e-05/0.1383, allocations: 7.906 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1383, allocations: 0 / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1383, allocations: 4 kB / 472.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1383, allocations: 3.984 kB / 472.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000342/0.1387, allocations: 302.4 kB / 473.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1387, allocations: 0 / 473.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.49e-05/0.1387, allocations: 8 kB / 473.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1387, allocations: 0 / 473.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.1388, allocations: 7.922 kB / 473.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.1388, allocations: 7.938 kB / 473.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1388, allocations: 0 / 473.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001805/0.139, allocations: 155.4 kB / 473.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.139, allocations: 77.11 kB / 473.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.139, allocations: 0 / 473.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.356e-05/0.1391, allocations: 7.969 kB / 473.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.051e-05/0.1391, allocations: 3.984 kB / 473.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.1392, allocations: 0 / 473.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.82e-05/0.1392, allocations: 95.27 kB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1392, allocations: 0 / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000233/0.1395, allocations: 15.97 kB / 473.6 MB, free: 10.37 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.0001146/0.1396, allocations: 91.25 kB / 473.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001036/0.1397, allocations: 20.22 kB / 473.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1397, allocations: 0 / 473.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.121e-05/0.1397, allocations: 7.984 kB / 473.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.1401, allocations: 16.27 kB / 473.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003847/0.1404, allocations: 175.8 kB / 473.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.1408, allocations: 0.6807 MB / 474.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.666e-05/0.1408, allocations: 11.44 kB / 474.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1408, allocations: 0 / 474.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of Templates: time 0.002389/0.1432, allocations: 0.7428 MB / 475.3 MB, free: 8.559 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/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_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches