Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 97.58 kB / 18.01 MB, free: 5.602 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.001673/0.001673, allocations: 181.6 kB / 18.91 MB, free: 4.738 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.392/1.392, allocations: 223.3 MB / 243 MB, free: 14.28 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.1911/0.1911, allocations: 44.25 MB / 338.3 MB, free: 2.391 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003282, allocations: 8 kB / 411 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1044, allocations: 61.93 MB / 472.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001775/0.1062, allocations: 1.314 MB / 474.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007901/0.1071, allocations: 478.9 kB / 474.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.374e-05/0.1072, allocations: 0 / 474.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.1073, allocations: 3.938 kB / 474.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.157e-05/0.1073, allocations: 3.938 kB / 474.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.1075, allocations: 39.95 kB / 474.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001377/0.1077, allocations: 79.72 kB / 474.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.1078, allocations: 24.22 kB / 474.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.89e-05/0.1078, allocations: 23.86 kB / 474.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.1079, allocations: 23.84 kB / 474.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.1079, allocations: 4 kB / 474.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.147e-05/0.108, allocations: 4 kB / 474.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.367e-05/0.108, allocations: 15.92 kB / 474.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.016e-05/0.108, allocations: 57.44 kB / 475 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.491e-05/0.1081, allocations: 52.06 kB / 475 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1081, allocations: 0 / 475 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1081, allocations: 0 / 475 MB, free: 11.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1082, allocations: 4 kB / 475 MB, free: 11.16 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004883/0.1087, allocations: 367.3 kB / 475.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.1087, allocations: 16.03 kB / 475.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.1087, allocations: 8.844 kB / 475.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001907/0.1089, allocations: 192.2 kB / 475.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.109, allocations: 4.375 kB / 475.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.109, allocations: 8.375 kB / 475.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001471/0.1092, allocations: 81.02 kB / 475.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.1092, allocations: 7.922 kB / 475.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.1092, allocations: 4 kB / 475.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.1092, allocations: 4 kB / 475.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.797e-05/0.1093, allocations: 31.92 kB / 475.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.1099, allocations: 364.5 kB / 476.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.11, allocations: 50.56 kB / 476.1 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.848e-05/0.1101, allocations: 20.92 kB / 476.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.1101, allocations: 0 / 476.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001572/0.1103, allocations: 71.33 kB / 476.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.803e-06/0.1103, allocations: 0 / 476.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002188/0.1105, allocations: 85.53 kB / 476.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.1106, allocations: 51.41 kB / 476.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.1107, allocations: 151.9 kB / 476.5 MB, free: 9.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.1107, allocations: 33.7 kB / 476.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.982e-05/0.1108, allocations: 100.2 kB / 476.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.1108, allocations: 15.7 kB / 476.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.1109, allocations: 17.72 kB / 476.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.111, allocations: 326.8 kB / 477 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.525e-05/0.111, allocations: 16 kB / 477 MB, free: 8.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.067e-05/0.1111, allocations: 38.56 kB / 477 MB, free: 8.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.878e-05/0.1112, allocations: 62.5 kB / 477.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1112, allocations: 0 / 477.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001399/0.1113, allocations: 81.53 kB / 477.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.1114, allocations: 8 kB / 477.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1114, allocations: 0 / 477.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1114, allocations: 4.125 kB / 477.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.389e-05/0.1115, allocations: 8.062 kB / 477.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.1115, allocations: 8.328 kB / 477.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.137e-05/0.1116, allocations: 15.98 kB / 477.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.1116, allocations: 0 / 477.2 MB, free: 8.715 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.000107/0.1117, allocations: 121.8 kB / 477.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.1117, allocations: 11.84 kB / 477.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.1117, allocations: 12.66 kB / 477.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1118, allocations: 0 / 477.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.1118, allocations: 7.984 kB / 477.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1118, allocations: 7.938 kB / 477.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.1121, allocations: 350.4 kB / 477.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1121, allocations: 0 / 477.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.842e-05/0.1122, allocations: 4 kB / 477.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.1122, allocations: 0 / 477.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.1122, allocations: 7.938 kB / 477.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.1122, allocations: 4 kB / 477.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1122, allocations: 0 / 477.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002227/0.1124, allocations: 195.4 kB / 477.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/0.1125, allocations: 85.02 kB / 478 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.1125, allocations: 4 kB / 478 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1126, allocations: 11.98 kB / 478 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.887e-05/0.1127, allocations: 7.984 kB / 478 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.1127, allocations: 0 / 478 MB, free: 7.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.445e-05/0.1128, allocations: 105.3 kB / 478.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1128, allocations: 4.062 kB / 478.2 MB, free: 7.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002385/0.113, allocations: 16 kB / 478.2 MB, free: 7.68 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001028/0.1131, allocations: 99.7 kB / 478.3 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.1133, allocations: 43.98 kB / 478.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.1133, allocations: 0 / 478.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.267e-05/0.1133, allocations: 23.94 kB / 478.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.1137, allocations: 19.92 kB / 478.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005353/0.1142, allocations: 270.9 kB / 478.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.1144, allocations: 0.7004 MB / 479.3 MB, free: 6.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.617e-05/0.1145, allocations: 11.44 kB / 479.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1145, allocations: 3.938 kB / 479.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of Templates: time 0.002723/0.1172, allocations: 1.137 MB / 480.5 MB, free: 5.312 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches