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.001346/0.001346, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001464/0.001464, allocations: 147.1 kB / 24.89 MB, free: 8.785 MB / 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 0.9724/0.9724, allocations: 173.4 MB / 201.5 MB, free: 8.262 MB / 186.7 MB " [Timeout remaining time 179] 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.763e-06/1.763e-06, allocations: 3.938 kB / 268.5 MB, free: 9.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.444e-05/2.62e-05, allocations: 2.312 kB / 268.5 MB, free: 9.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002671/0.002697, allocations: 1.925 MB / 270.4 MB, free: 7.895 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.004158, allocations: 1.149 MB / 271.5 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.004264, allocations: 0 / 271.5 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002879/0.004552, allocations: 67.61 kB / 271.6 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/0.004793, allocations: 95.47 kB / 271.7 MB, free: 6.582 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.005307, allocations: 262.3 kB / 272 MB, free: 6.328 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.005502, allocations: 179.5 kB / 272.1 MB, free: 6.152 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.025e-05/0.005592, allocations: 26.33 kB / 272.2 MB, free: 6.125 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.005717, allocations: 103.8 kB / 272.3 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.426e-05/0.005811, allocations: 69 kB / 272.3 MB, free: 5.957 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.198e-05/0.005833, allocations: 12 kB / 272.3 MB, free: 5.945 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.005963, allocations: 71.81 kB / 272.4 MB, free: 5.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.499e-05/0.006028, allocations: 55.78 kB / 272.5 MB, free: 5.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.941e-05/0.006078, allocations: 36.34 kB / 272.5 MB, free: 5.785 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002306/0.006308, allocations: 191.9 kB / 272.7 MB, free: 5.598 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.006311, allocations: 0 / 272.7 MB, free: 5.598 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.006311, allocations: 1.969 kB / 272.7 MB, free: 5.598 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.006315, allocations: 0 / 272.7 MB, free: 5.598 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.0004646/0.00678, allocations: 445.1 kB / 273.1 MB, free: 5.133 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.006811, allocations: 8.031 kB / 273.1 MB, free: 5.125 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.283e-05/0.006854, allocations: 20.92 kB / 273.2 MB, free: 5.105 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/0.007076, allocations: 214.4 kB / 273.4 MB, free: 4.875 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.00709, allocations: 4.375 kB / 273.4 MB, free: 4.871 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.007106, allocations: 13.25 kB / 273.4 MB, free: 4.859 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.007308, allocations: 147.5 kB / 273.5 MB, free: 4.688 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.007317, allocations: 8.375 kB / 273.5 MB, free: 4.68 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.007327, allocations: 12 kB / 273.5 MB, free: 4.668 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.007331, allocations: 0 / 273.5 MB, free: 4.668 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.654e-05/0.007368, allocations: 18.81 kB / 273.6 MB, free: 4.648 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002751/0.007643, allocations: 291.7 kB / 273.8 MB, free: 4.336 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.007774, allocations: 160 kB / 274 MB, free: 4.141 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.716e-05/0.007811, allocations: 47.36 kB / 274 MB, free: 4.082 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.007828, allocations: 11.92 kB / 274.1 MB, free: 4.07 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.84e-05/0.007927, allocations: 83.91 kB / 274.1 MB, free: 3.969 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.007928, allocations: 0 / 274.1 MB, free: 3.969 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001491/0.008077, allocations: 96.36 kB / 274.2 MB, free: 3.867 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.00813, allocations: 140.5 kB / 274.4 MB, free: 3.699 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.008279, allocations: 250.7 kB / 274.6 MB, free: 3.438 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.008301, allocations: 34.08 kB / 274.7 MB, free: 3.398 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.008353, allocations: 120.7 kB / 274.8 MB, free: 3.273 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.008372, allocations: 15.91 kB / 274.8 MB, free: 3.258 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/0.008406, allocations: 29.69 kB / 274.8 MB, free: 3.223 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.193e-05/0.008498, allocations: 326.8 kB / 275.1 MB, free: 2.895 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.063e-05/0.008518, allocations: 14.81 kB / 275.1 MB, free: 2.879 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.56e-05/0.008554, allocations: 57.12 kB / 275.2 MB, free: 2.805 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.127e-05/0.008605, allocations: 52.14 kB / 275.3 MB, free: 2.742 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.008607, allocations: 0 / 275.3 MB, free: 2.742 MB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 7.842e-05/0.008686, allocations: 80.41 kB / 275.3 MB, free: 2.656 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.008698, allocations: 7.938 kB / 275.3 MB, free: 2.648 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.008702, allocations: 0 / 275.3 MB, free: 2.648 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.008713, allocations: 4 kB / 275.3 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.202e-05/0.008775, allocations: 11.98 kB / 275.4 MB, free: 2.633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-06/0.008777, allocations: 4 kB / 275.4 MB, free: 2.629 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.696e-05/0.008814, allocations: 11.89 kB / 275.4 MB, free: 2.617 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.351e-06/0.00882, allocations: 0 / 275.4 MB, free: 2.617 MB / 250.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.0001046/0.008924, allocations: 126.9 kB / 275.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-05/0.008973, allocations: 65.62 kB / 275.6 MB, free: 2.414 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.709e-05/0.00907, allocations: 83.41 kB / 275.6 MB, free: 2.324 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.009074, allocations: 4 kB / 275.6 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.009076, allocations: 0 / 275.6 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.00908, allocations: 0 / 275.6 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000103/0.009183, allocations: 117.8 kB / 275.8 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.009184, allocations: 0 / 275.8 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.113e-05/0.009225, allocations: 19.92 kB / 275.8 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.009229, allocations: 4 kB / 275.8 MB, free: 2.164 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.009236, allocations: 8 kB / 275.8 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.009238, allocations: 4 kB / 275.8 MB, free: 2.152 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.009239, allocations: 0 / 275.8 MB, free: 2.152 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.874e-05/0.009328, allocations: 117.3 kB / 275.9 MB, free: 2.008 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.009372, allocations: 31.84 kB / 275.9 MB, free: 1.977 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.966e-05/0.009392, allocations: 7.938 kB / 275.9 MB, free: 1.969 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.293e-05/0.009425, allocations: 4 kB / 276 MB, free: 1.965 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.009459, allocations: 15.91 kB / 276 MB, free: 1.949 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.009471, allocations: 4 kB / 276 MB, free: 1.945 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.109e-05/0.009542, allocations: 97.59 kB / 276.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009543, allocations: 4 kB / 276.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001453/0.009688, allocations: 39.89 kB / 276.1 MB, free: 1.805 MB / 250.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.00116/0.01085, allocations: 0.519 MB / 276.6 MB, free: 1.516 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.01095, allocations: 48.78 kB / 276.7 MB, free: 1.465 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.01095, allocations: 4 kB / 276.7 MB, free: 1.461 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.553e-05/0.01099, allocations: 28.95 kB / 276.7 MB, free: 1.43 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001981/0.01119, allocations: 67.8 kB / 276.8 MB, free: 1.367 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003717/0.01156, allocations: 355.7 kB / 277.1 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.622e-05/0.0116, allocations: 87.88 kB / 277.2 MB, free: 0.875 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.61e-05/0.01165, allocations: 21.62 kB / 277.2 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.527e-05/0.01174, allocations: 79.55 kB / 277.3 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01174, allocations: 4 kB / 277.3 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of Templates: time 0.005062/0.0168, allocations: 3.242 MB / 280.6 MB, free: 13.6 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.696891195140779]