Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 84.66 kB / 20.95 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 153.1 kB / 24.26 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 173.4 MB / 200.8 MB, free: 9.281 MB / 186.7 MB " [Timeout remaining time 178] 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.17e-05/3.36e-05, allocations: 6.25 kB / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004071/0.004104, allocations: 1.882 MB / 269.2 MB, free: 4.805 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.006425, allocations: 1.098 MB / 270.3 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.006585, allocations: 11.94 kB / 270.3 MB, free: 3.688 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003789/0.006964, allocations: 67.59 kB / 270.4 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003782/0.007342, allocations: 95.53 kB / 270.5 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009667/0.008309, allocations: 262.9 kB / 270.7 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004613/0.00877, allocations: 187.5 kB / 270.9 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001362/0.008906, allocations: 17.8 kB / 270.9 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002239/0.00913, allocations: 99.73 kB / 271 MB, free: 2.969 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.009296, allocations: 75.78 kB / 271.1 MB, free: 2.895 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.535e-05/0.009341, allocations: 8 kB / 271.1 MB, free: 2.887 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002143/0.009556, allocations: 67.88 kB / 271.2 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.00968, allocations: 59.77 kB / 271.2 MB, free: 2.762 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.286e-05/0.009773, allocations: 43.84 kB / 271.3 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004812/0.01025, allocations: 239.1 kB / 271.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.01026, allocations: 4 kB / 271.5 MB, free: 2.48 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.01026, allocations: 0 / 271.5 MB, free: 2.48 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.01027, allocations: 4 kB / 271.5 MB, free: 2.477 MB / 250.7 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.0009406/0.01121, allocations: 482.5 kB / 272 MB, free: 1.969 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.01125, allocations: 8.031 kB / 272 MB, free: 1.961 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.01136, allocations: 28.8 kB / 272 MB, free: 1.934 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.01183, allocations: 232.7 kB / 272.2 MB, free: 1.68 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.01186, allocations: 8.375 kB / 272.3 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.01188, allocations: 12.36 kB / 272.3 MB, free: 1.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004585/0.01234, allocations: 193.8 kB / 272.5 MB, free: 1.438 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.01235, allocations: 7.875 kB / 272.5 MB, free: 1.43 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.01237, allocations: 4 kB / 272.5 MB, free: 1.426 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.01237, allocations: 0 / 272.5 MB, free: 1.426 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001486/0.01252, allocations: 47.91 kB / 272.5 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.01317, allocations: 402.2 kB / 272.9 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.0135, allocations: 142.5 kB / 273 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.01363, allocations: 55.42 kB / 273.1 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.01367, allocations: 7.938 kB / 273.1 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/0.01389, allocations: 97.08 kB / 273.2 MB, free: 0.582 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.0139, allocations: 0 / 273.2 MB, free: 0.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005317/0.01443, allocations: 177.7 kB / 273.4 MB, free: 412 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/0.01457, allocations: 166.2 kB / 273.5 MB, free: 208 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004521/0.01502, allocations: 337.8 kB / 273.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.01505, allocations: 33.7 kB / 273.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.01518, allocations: 120.4 kB / 274 MB, free: 15.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.603e-05/0.01522, allocations: 19.86 kB / 274 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.497e-05/0.01528, allocations: 33.7 kB / 274.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.01548, allocations: 334.8 kB / 274.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.881e-05/0.01557, allocations: 23.98 kB / 274.4 MB, free: 15.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.01573, allocations: 115.7 kB / 274.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.01592, allocations: 78.47 kB / 274.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01592, allocations: 0 / 274.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002898/0.01621, allocations: 125.8 kB / 274.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.01623, allocations: 8 kB / 274.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01623, allocations: 0 / 274.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.01625, allocations: 0 / 274.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.01636, allocations: 15.98 kB / 274.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.01637, allocations: 4 kB / 274.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.554e-05/0.01645, allocations: 64 / 274.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.01646, allocations: 15.94 kB / 274.8 MB, free: 14.88 MB / 266.7 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001707/0.01663, allocations: 157.6 kB / 274.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.01676, allocations: 77.48 kB / 275 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003279/0.01709, allocations: 127.4 kB / 275.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.01709, allocations: 0 / 275.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.0171, allocations: 0 / 275.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.0171, allocations: 4 kB / 275.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.01735, allocations: 185.2 kB / 275.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.01736, allocations: 4.062 kB / 275.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.433e-05/0.01744, allocations: 15.98 kB / 275.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.01744, allocations: 7.938 kB / 275.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.01746, allocations: 4 kB / 275.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.01746, allocations: 0 / 275.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.01746, allocations: 0 / 275.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003855/0.01785, allocations: 195.5 kB / 275.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.235e-05/0.01794, allocations: 31.84 kB / 275.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.855e-05/0.01799, allocations: 11.94 kB / 275.6 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.039e-05/0.01807, allocations: 7.984 kB / 275.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.01813, allocations: 19.92 kB / 275.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.01816, allocations: 4 kB / 275.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002963/0.01845, allocations: 241.2 kB / 275.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01845, allocations: 0 / 275.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.01875, allocations: 39.92 kB / 275.9 MB, free: 13.69 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002059/0.02081, allocations: 459.7 kB / 276.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002687/0.02108, allocations: 71.89 kB / 276.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.02108, allocations: 8.125 kB / 276.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.0212, allocations: 39.92 kB / 276.5 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004449/0.02165, allocations: 72.84 kB / 276.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007634/0.02241, allocations: 402 kB / 276.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001736/0.02258, allocations: 144.2 kB / 277.1 MB, free: 12.65 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.286e-05/0.02268, allocations: 25.48 kB / 277.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.272e-05/0.02274, allocations: 20.5 kB / 277.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02274, allocations: 0 / 277.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of Templates: time 0.008067/0.03081, allocations: 3.062 MB / 280.2 MB, free: 9.586 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.406161191989668]