Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008483/0.0008484, allocations: 97.22 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008503/0.0008503, allocations: 176.9 kB / 16.57 MB, free: 6.391 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.179/1.179, allocations: 205.4 MB / 222.7 MB, free: 5.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2718/0.2718, allocations: 43.55 MB / 314.5 MB, free: 8.707 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.0004772/0.0004773, allocations: 18.97 kB / 383.9 MB, free: 8.051 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1035, allocations: 58.86 MB / 442.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001585/0.1051, allocations: 1.292 MB / 444 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007768/0.1059, allocations: 0.4961 MB / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.738e-05/0.106, allocations: 0 / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.106, allocations: 3.938 kB / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.485e-05/0.1061, allocations: 15.97 kB / 444.6 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001608/0.1063, allocations: 27.91 kB / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001342/0.1064, allocations: 55.88 kB / 444.6 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.874e-05/0.1065, allocations: 28.19 kB / 444.7 MB, free: 11.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.93e-05/0.1066, allocations: 23.86 kB / 444.7 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.725e-05/0.1066, allocations: 27.84 kB / 444.7 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.1067, allocations: 4 kB / 444.7 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.024e-05/0.1067, allocations: 0 / 444.7 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.1067, allocations: 15.92 kB / 444.7 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.884e-05/0.1068, allocations: 33.7 kB / 444.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.041e-05/0.1068, allocations: 52.06 kB / 444.8 MB, free: 10.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.1068, allocations: 4 kB / 444.8 MB, free: 10.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1068, allocations: 0 / 444.8 MB, free: 10.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.377e-06/0.1069, allocations: 0 / 444.8 MB, free: 10.99 MB / 382.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.0004995/0.1074, allocations: 383 kB / 445.2 MB, free: 10.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.1074, allocations: 8.031 kB / 445.2 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.78e-05/0.1074, allocations: 15.86 kB / 445.2 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.1077, allocations: 186.9 kB / 445.4 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.1077, allocations: 8 kB / 445.4 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.1077, allocations: 8 kB / 445.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001396/0.1079, allocations: 73.61 kB / 445.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1079, allocations: 0 / 445.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.1079, allocations: 4 kB / 445.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.1079, allocations: 0 / 445.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.714e-05/0.108, allocations: 43.88 kB / 445.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005289/0.1085, allocations: 360.6 kB / 445.9 MB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.915e-05/0.1086, allocations: 46.56 kB / 445.9 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.1086, allocations: 0 / 445.9 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001339/0.1088, allocations: 75.53 kB / 446 MB, free: 9.637 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1088, allocations: 0 / 446 MB, free: 9.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001764/0.109, allocations: 77.59 kB / 446.1 MB, free: 9.555 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.109, allocations: 59.39 kB / 446.1 MB, free: 9.484 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.1091, allocations: 137.9 kB / 446.3 MB, free: 9.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.1092, allocations: 33.64 kB / 446.3 MB, free: 9.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.1092, allocations: 100.1 kB / 446.4 MB, free: 9.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.1092, allocations: 23.7 kB / 446.4 MB, free: 9.176 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.1093, allocations: 4 kB / 446.4 MB, free: 9.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.312e-05/0.1094, allocations: 318.8 kB / 446.7 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.735e-05/0.1094, allocations: 12 kB / 446.8 MB, free: 8.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.633e-05/0.1094, allocations: 42.5 kB / 446.8 MB, free: 8.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.7e-05/0.1095, allocations: 19.95 kB / 446.8 MB, free: 8.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1095, allocations: 4 kB / 446.8 MB, free: 8.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001715/0.1097, allocations: 85.53 kB / 446.9 MB, free: 8.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.1097, allocations: 4 kB / 446.9 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.1097, allocations: 0 / 446.9 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.1097, allocations: 4 kB / 446.9 MB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.428e-05/0.1098, allocations: 11.98 kB / 446.9 MB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1098, allocations: 4.391 kB / 446.9 MB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.822e-05/0.1099, allocations: 8 kB / 446.9 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.1099, allocations: 7.938 kB / 446.9 MB, free: 8.637 MB / 382.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,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.017e-05/0.11, allocations: 129.8 kB / 447.1 MB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.11, allocations: 15.83 kB / 447.1 MB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.62e-05/0.11, allocations: 12.72 kB / 447.1 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.11, allocations: 0 / 447.1 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.11, allocations: 0 / 447.1 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.11, allocations: 0 / 447.1 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003105/0.1104, allocations: 362.3 kB / 447.5 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1104, allocations: 0 / 447.5 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.317e-05/0.1104, allocations: 4 kB / 447.5 MB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1104, allocations: 4 kB / 447.5 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.1104, allocations: 0 / 447.5 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1104, allocations: 3.984 kB / 447.5 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1105, allocations: 0 / 447.5 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.1106, allocations: 191.4 kB / 447.7 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.396e-05/0.1107, allocations: 85 kB / 447.7 MB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.1107, allocations: 8.031 kB / 447.7 MB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.153e-05/0.1108, allocations: 8.062 kB / 447.8 MB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.769e-05/0.1109, allocations: 11.92 kB / 447.8 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.1109, allocations: 7.984 kB / 447.8 MB, free: 7.715 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.497e-05/0.1109, allocations: 102.7 kB / 447.9 MB, free: 7.617 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1109, allocations: 0 / 447.9 MB, free: 7.617 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.1112, allocations: 19.94 kB / 447.9 MB, free: 7.598 MB / 382.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 (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 8.187e-05/0.1113, allocations: 99.19 kB / 448 MB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001087/0.1114, allocations: 43.92 kB / 448 MB, free: 7.445 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1114, allocations: 8.125 kB / 448 MB, free: 7.438 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.406e-05/0.1114, allocations: 19.98 kB / 448.1 MB, free: 7.418 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.1116, allocations: 19.94 kB / 448.1 MB, free: 7.398 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004478/0.1121, allocations: 244.9 kB / 448.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.1123, allocations: 0.7004 MB / 449 MB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.157e-05/0.1124, allocations: 12.36 kB / 449 MB, free: 6.395 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.911e-05/0.1124, allocations: 11.44 kB / 449 MB, free: 6.383 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1124, allocations: 0 / 449 MB, free: 6.383 MB / 382.1 MB Notification: Performance of Templates: time 0.002662/0.1151, allocations: 0.7928 MB / 449.8 MB, free: 5.594 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches