Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 111 kB / 21.18 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 207.5 kB / 24.48 MB, free: 3.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.441/1.441, allocations: 230.6 MB / 258.2 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 43.92 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2241, allocations: 53.38 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003557/0.2277, allocations: 1.899 MB / 434.2 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.23, allocations: 1.231 MB / 435.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.2301, allocations: 3.938 kB / 435.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.2304, allocations: 71.66 kB / 435.5 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003603/0.2307, allocations: 139.4 kB / 435.7 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006092/0.2314, allocations: 226.9 kB / 435.9 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.2316, allocations: 191.5 kB / 436.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.2317, allocations: 28.62 kB / 436.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.2319, allocations: 91.56 kB / 436.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.232, allocations: 87.66 kB / 436.3 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.232, allocations: 8 kB / 436.3 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.2322, allocations: 71.95 kB / 436.4 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.644e-05/0.2323, allocations: 59.7 kB / 436.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.824e-05/0.2323, allocations: 63.59 kB / 436.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003456/0.2327, allocations: 250.6 kB / 436.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.2327, allocations: 4 kB / 436.7 MB, free: 2.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2327, allocations: 0 / 436.7 MB, free: 2.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.2327, allocations: 0 / 436.7 MB, free: 2.324 MB / 334.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.0007715/0.2335, allocations: 478.5 kB / 437.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.2335, allocations: 8.031 kB / 437.2 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.872e-05/0.2336, allocations: 32.69 kB / 437.2 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.234, allocations: 241.5 kB / 437.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.234, allocations: 8.375 kB / 437.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.234, allocations: 8.125 kB / 437.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004303/0.2345, allocations: 193.2 kB / 437.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.2345, allocations: 0 / 437.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.2345, allocations: 0 / 437.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.2345, allocations: 4 kB / 437.7 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.2346, allocations: 43.91 kB / 437.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006706/0.2353, allocations: 406.2 kB / 438.1 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003146/0.2356, allocations: 142.5 kB / 438.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.2358, allocations: 59.41 kB / 438.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.2358, allocations: 0 / 438.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.236, allocations: 105 kB / 438.4 MB, free: 440 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.236, allocations: 0 / 438.4 MB, free: 440 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004751/0.2365, allocations: 177.4 kB / 438.6 MB, free: 256 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.2366, allocations: 166.2 kB / 438.8 MB, free: 52 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000401/0.237, allocations: 340.3 kB / 439.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.237, allocations: 25.7 kB / 439.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.2371, allocations: 140.3 kB / 439.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.348e-05/0.2372, allocations: 19.84 kB / 439.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.925e-05/0.2372, allocations: 33.7 kB / 439.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.2374, allocations: 338.8 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-05/0.2375, allocations: 28.36 kB / 439.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.2376, allocations: 146.2 kB / 439.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.2378, allocations: 97.33 kB / 439.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2378, allocations: 4 kB / 439.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002687/0.2381, allocations: 145.5 kB / 440 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.2381, allocations: 4 kB / 440 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2381, allocations: 7.938 kB / 440.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.2381, allocations: 0 / 440.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.2382, allocations: 27.92 kB / 440.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.2383, allocations: 7.984 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.101e-05/0.2383, allocations: 7.953 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.2383, allocations: 7.984 kB / 440.1 MB, free: 14.6 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001475/0.2385, allocations: 157.7 kB / 440.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.2386, allocations: 77.55 kB / 440.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.2389, allocations: 123.4 kB / 440.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2389, allocations: 4 kB / 440.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2389, allocations: 0 / 440.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.2389, allocations: 11.92 kB / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.2391, allocations: 189 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2391, allocations: 0 / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.16e-05/0.2392, allocations: 16 kB / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2392, allocations: 0 / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.2392, allocations: 8.047 kB / 440.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2392, allocations: 4 kB / 440.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2392, allocations: 0 / 440.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.2395, allocations: 195.3 kB / 440.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.284e-05/0.2396, allocations: 43.83 kB / 440.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.2396, allocations: 0 / 440.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.183e-05/0.2397, allocations: 4 kB / 440.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.49e-05/0.2398, allocations: 11.98 kB / 440.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.2398, allocations: 16.05 kB / 440.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002514/0.24, allocations: 247.1 kB / 441.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.24, allocations: 8 kB / 441.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002698/0.2403, allocations: 35.92 kB / 441.2 MB, free: 13.39 MB / 350.1 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.00166/0.242, allocations: 460.4 kB / 441.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000259/0.2422, allocations: 91.83 kB / 441.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2422, allocations: 0 / 441.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.2423, allocations: 40.28 kB / 441.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.2428, allocations: 75.2 kB / 441.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006486/0.2434, allocations: 389.7 kB / 442.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/0.2436, allocations: 140.2 kB / 442.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.206e-05/0.2436, allocations: 29.97 kB / 442.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.801e-05/0.2437, allocations: 23.42 kB / 442.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2437, allocations: 0 / 442.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of Templates: time 0.007231/0.2509, allocations: 3.264 MB / 445.7 MB, free: 9.074 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.4692902639944805]