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.001215/0.001215, allocations: 100.6 kB / 16.94 MB, free: 6.184 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.001217/0.001217, allocations: 191.4 kB / 17.86 MB, free: 5.289 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.515/1.515, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2255/0.2255, allocations: 43.52 MB / 314.6 MB, free: 0.5352 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.001569/0.001569, allocations: 69.88 kB / 383.4 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1441, allocations: 57.79 MB / 441.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002583/0.1467, allocations: 0.815 MB / 442 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002751/0.147, allocations: 48.39 kB / 442 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.3e-05/0.1471, allocations: 3.938 kB / 442 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.1473, allocations: 3.938 kB / 442.1 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.023e-05/0.1473, allocations: 3.938 kB / 442.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001285/0.1474, allocations: 19.97 kB / 442.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.1476, allocations: 43.84 kB / 442.1 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.1477, allocations: 16.22 kB / 442.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.778e-05/0.1477, allocations: 19.92 kB / 442.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.843e-05/0.1478, allocations: 15.92 kB / 442.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.1478, allocations: 0 / 442.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.251e-05/0.1478, allocations: 4 kB / 442.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.33e-05/0.1479, allocations: 8 kB / 442.2 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.197e-05/0.1479, allocations: 15.88 kB / 442.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.148, allocations: 43.75 kB / 442.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.148, allocations: 0 / 442.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.148, allocations: 0 / 442.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.148, allocations: 0 / 442.2 MB, free: 5.863 MB / 318.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.0004608/0.1485, allocations: 355.4 kB / 442.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.1485, allocations: 11.89 kB / 442.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.1486, allocations: 4.938 kB / 442.6 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.1487, allocations: 184.2 kB / 442.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.625e-06/0.1487, allocations: 4.375 kB / 442.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.1488, allocations: 384 / 442.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.1489, allocations: 54.25 kB / 442.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.1489, allocations: 192 / 442.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.1489, allocations: 3.938 kB / 442.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.1489, allocations: 8 kB / 442.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.405e-05/0.149, allocations: 11.98 kB / 442.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004691/0.1495, allocations: 292.7 kB / 443.2 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.576e-05/0.1495, allocations: 26.56 kB / 443.2 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.629e-05/0.1495, allocations: 8.922 kB / 443.2 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.1496, allocations: 3.984 kB / 443.2 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001159/0.1497, allocations: 59.34 kB / 443.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.1497, allocations: 0 / 443.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001465/0.1498, allocations: 53.59 kB / 443.3 MB, free: 4.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.657e-05/0.1499, allocations: 51.41 kB / 443.3 MB, free: 4.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.135e-05/0.1499, allocations: 117.8 kB / 443.5 MB, free: 4.441 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.15, allocations: 25.7 kB / 443.5 MB, free: 4.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.418e-05/0.15, allocations: 84.14 kB / 443.6 MB, free: 4.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.15, allocations: 15.89 kB / 443.6 MB, free: 4.309 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.1501, allocations: 17.72 kB / 443.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.143e-05/0.1501, allocations: 314.8 kB / 443.9 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.886e-05/0.1501, allocations: 11.98 kB / 443.9 MB, free: 3.957 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.098e-05/0.1502, allocations: 17.66 kB / 443.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.077e-05/0.1502, allocations: 25.72 kB / 444 MB, free: 3.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1502, allocations: 4.375 kB / 444 MB, free: 3.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.381e-05/0.1503, allocations: 61.47 kB / 444 MB, free: 3.832 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1503, allocations: 4 kB / 444 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1503, allocations: 4 kB / 444 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.1503, allocations: 3.938 kB / 444 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.093e-05/0.1504, allocations: 4 kB / 444 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1504, allocations: 0 / 444 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.899e-05/0.1504, allocations: 7.922 kB / 444.1 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.1504, allocations: 15.92 kB / 444.1 MB, free: 3.793 MB / 318.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 5.471e-05/0.1505, allocations: 117.8 kB / 444.2 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.778e-06/0.1505, allocations: 7.906 kB / 444.2 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.238e-05/0.1505, allocations: 7.906 kB / 444.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1505, allocations: 4 kB / 444.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1505, allocations: 0 / 444.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1505, allocations: 0 / 444.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002179/0.1508, allocations: 298.5 kB / 444.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1508, allocations: 0 / 444.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.741e-05/0.1508, allocations: 4 kB / 444.5 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1508, allocations: 4 kB / 444.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.1508, allocations: 0 / 444.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1508, allocations: 3.938 kB / 444.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1508, allocations: 0 / 444.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.151, allocations: 163.8 kB / 444.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.645e-05/0.151, allocations: 77.11 kB / 444.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.151, allocations: 0 / 444.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.213e-05/0.1511, allocations: 7.969 kB / 444.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.973e-05/0.1511, allocations: 8.062 kB / 444.8 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.1511, allocations: 3.984 kB / 444.8 MB, free: 2.996 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.216e-05/0.1512, allocations: 87.28 kB / 444.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1512, allocations: 0 / 444.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002114/0.1514, allocations: 8 kB / 444.9 MB, free: 2.902 MB / 318.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 6.501e-05/0.1515, allocations: 95.23 kB / 444.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.308e-05/0.1515, allocations: 19.94 kB / 445 MB, free: 2.777 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1516, allocations: 0 / 445 MB, free: 2.777 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.722e-05/0.1516, allocations: 12.06 kB / 445 MB, free: 2.766 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.1519, allocations: 17.05 kB / 445 MB, free: 2.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003091/0.1522, allocations: 167.9 kB / 445.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.1523, allocations: 0.6846 MB / 445.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.095e-05/0.1524, allocations: 11.44 kB / 445.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1524, allocations: 4 kB / 445.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of Templates: time 0.001977/0.1543, allocations: 0.724 MB / 446.6 MB, free: 1.105 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches