Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001177/0.001177, allocations: 179.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.881/1.881, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008354/0.0008356, allocations: 90.69 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4384/0.4384, allocations: 43.56 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003708/0.0003708, allocations: 16 kB / 431.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1285, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0009827/0.1295, allocations: 0.5207 MB / 490.7 MB, free: 10.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001789/0.1297, allocations: 43.84 kB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.979e-05/0.1297, allocations: 4 kB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.507e-05/0.1298, allocations: 3.938 kB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.487e-05/0.1298, allocations: 7.938 kB / 490.8 MB, free: 10.65 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.718e-05/0.1299, allocations: 11.98 kB / 490.8 MB, free: 10.64 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 7.582e-05/0.13, allocations: 35.86 kB / 490.9 MB, free: 10.6 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.526e-05/0.1301, allocations: 23.95 kB / 490.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.854e-05/0.1302, allocations: 7.938 kB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.712e-05/0.1302, allocations: 11.92 kB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.283e-05/0.1302, allocations: 4 kB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.486e-06/0.1302, allocations: 0 / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.057e-06/0.1302, allocations: 0 / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.762e-05/0.1303, allocations: 37.64 kB / 490.9 MB, free: 10.51 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.05e-05/0.1304, allocations: 23.95 kB / 491 MB, free: 10.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1304, allocations: 0 / 491 MB, free: 10.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1304, allocations: 0 / 491 MB, free: 10.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.1304, allocations: 0 / 491 MB, free: 10.49 MB / 378.7 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.0003201/0.1307, allocations: 339.5 kB / 491.3 MB, free: 10.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.1307, allocations: 12.03 kB / 491.3 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.488e-05/0.1308, allocations: 3.906 kB / 491.3 MB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.1309, allocations: 183 kB / 491.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.305e-06/0.1309, allocations: 4 kB / 491.5 MB, free: 9.871 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.131, allocations: 7.906 kB / 491.5 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.1311, allocations: 53.62 kB / 491.5 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.919e-06/0.1311, allocations: 0 / 491.5 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.884e-06/0.1311, allocations: 0 / 491.5 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1311, allocations: 0 / 491.5 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.881e-05/0.1312, allocations: 15.98 kB / 491.6 MB, free: 9.789 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004445/0.1316, allocations: 296.6 kB / 491.9 MB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.97e-05/0.1317, allocations: 30.5 kB / 491.9 MB, free: 9.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.575e-05/0.1317, allocations: 8.922 kB / 491.9 MB, free: 9.398 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-06/0.1317, allocations: 0 / 491.9 MB, free: 9.398 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001028/0.1318, allocations: 55.36 kB / 491.9 MB, free: 9.332 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.1318, allocations: 0 / 491.9 MB, free: 9.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001063/0.1319, allocations: 53.62 kB / 492 MB, free: 9.273 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.132, allocations: 55.41 kB / 492.1 MB, free: 9.207 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.628e-05/0.1321, allocations: 110 kB / 492.2 MB, free: 9.086 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.1321, allocations: 33.7 kB / 492.2 MB, free: 9.047 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.1321, allocations: 91.98 kB / 492.3 MB, free: 8.953 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/0.1321, allocations: 15.95 kB / 492.3 MB, free: 8.938 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.793e-06/0.1322, allocations: 0 / 492.3 MB, free: 8.938 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1323, allocations: 318.8 kB / 492.6 MB, free: 8.617 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.452e-05/0.1323, allocations: 4 kB / 492.6 MB, free: 8.613 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.726e-05/0.1323, allocations: 25.7 kB / 492.6 MB, free: 8.582 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.967e-05/0.1324, allocations: 4.281 kB / 492.6 MB, free: 8.578 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1324, allocations: 0 / 492.6 MB, free: 8.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.375e-05/0.1325, allocations: 61.61 kB / 492.7 MB, free: 8.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.1325, allocations: 4 kB / 492.7 MB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.1325, allocations: 3.953 kB / 492.7 MB, free: 8.504 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.1325, allocations: 4 kB / 492.7 MB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.668e-05/0.1325, allocations: 0 / 492.7 MB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.1326, allocations: 8.031 kB / 492.7 MB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.855e-05/0.1326, allocations: 3.906 kB / 492.7 MB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.1326, allocations: 4 kB / 492.7 MB, free: 8.484 MB / 378.7 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 ($whenCondition1,greaterEqualThreshold.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.02e-05/0.1327, allocations: 117.8 kB / 492.8 MB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.171e-05/0.1327, allocations: 7.984 kB / 492.9 MB, free: 8.352 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.817e-05/0.1327, allocations: 3.906 kB / 492.9 MB, free: 8.348 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1327, allocations: 3.953 kB / 492.9 MB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1327, allocations: 4 kB / 492.9 MB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1328, allocations: 4 kB / 492.9 MB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000267/0.133, allocations: 298.9 kB / 493.2 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.133, allocations: 0 / 493.2 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.922e-05/0.1331, allocations: 7.938 kB / 493.2 MB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.1331, allocations: 3.953 kB / 493.2 MB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-06/0.1331, allocations: 3.938 kB / 493.2 MB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.1331, allocations: 4 kB / 493.2 MB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1331, allocations: 4 kB / 493.2 MB, free: 7.965 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00012/0.1332, allocations: 151.5 kB / 493.3 MB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.67e-05/0.1333, allocations: 85 kB / 493.4 MB, free: 7.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.1333, allocations: 3.953 kB / 493.4 MB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.201e-05/0.1334, allocations: 4.031 kB / 493.4 MB, free: 7.691 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.1334, allocations: 0 / 493.4 MB, free: 7.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.1334, allocations: 0 / 493.4 MB, free: 7.691 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.731e-05/0.1334, allocations: 91.27 kB / 493.5 MB, free: 7.602 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1335, allocations: 3.938 kB / 493.5 MB, free: 7.598 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001933/0.1337, allocations: 16.06 kB / 493.5 MB, free: 7.582 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.67e-05/0.1337, allocations: 95.19 kB / 493.6 MB, free: 7.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.07e-05/0.1338, allocations: 19.98 kB / 493.6 MB, free: 7.461 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1338, allocations: 0 / 493.6 MB, free: 7.461 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.43e-05/0.1338, allocations: 4 kB / 493.6 MB, free: 7.457 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.1341, allocations: 19.53 kB / 493.7 MB, free: 7.441 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002503/0.1343, allocations: 181.5 kB / 493.8 MB, free: 7.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.1346, allocations: 0.6809 MB / 494.5 MB, free: 6.523 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.731e-05/0.1346, allocations: 11.44 kB / 494.5 MB, free: 6.512 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1346, allocations: 0 / 494.5 MB, free: 6.512 MB / 378.7 MB Notification: Performance of Templates: time 0.001616/0.1362, allocations: 0.727 MB / 495.3 MB, free: 5.785 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches