Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001022/0.001022, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001059/0.001059, allocations: 166.2 kB / 24.82 MB, free: 9.266 MB / 18.57 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 0.9982/0.9982, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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.BooleanSignals.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.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.Hold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.912e-05/2.021e-05, allocations: 2.312 kB / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.002341/0.002361, allocations: 1.946 MB / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.003587, allocations: 1.184 MB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.827e-05/0.003675, allocations: 7.938 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004149/0.00409, allocations: 155.4 kB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002187/0.004309, allocations: 163.2 kB / 276.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.004547, allocations: 179.3 kB / 277 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001634/0.00471, allocations: 199.4 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.435e-05/0.004785, allocations: 21.8 kB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.00489, allocations: 107.7 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.825e-05/0.004968, allocations: 67.8 kB / 277.4 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.004984, allocations: 8 kB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.554e-05/0.00508, allocations: 63.89 kB / 277.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.729e-05/0.005127, allocations: 47.83 kB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.851e-05/0.005165, allocations: 43.8 kB / 277.6 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.00534, allocations: 167.3 kB / 277.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.005343, allocations: 8 kB / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.005344, allocations: 0 / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.326e-06/0.005347, allocations: 0 / 277.7 MB, free: 12.91 MB / 266.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.0004141/0.005761, allocations: 0.5516 MB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.00579, allocations: 8.031 kB / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.958e-05/0.00583, allocations: 24.8 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.006016, allocations: 228.3 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.00603, allocations: 8.359 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.006042, allocations: 16.31 kB / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.006213, allocations: 144.2 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.00622, allocations: 3.938 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.006228, allocations: 4 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.006232, allocations: 3.984 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.368e-05/0.006266, allocations: 19.92 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002859/0.006552, allocations: 450.6 kB / 279.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.006666, allocations: 140.4 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.861e-05/0.006704, allocations: 54.67 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.006719, allocations: 4 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.152e-05/0.00681, allocations: 96.3 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 9.22e-07/0.006811, allocations: 0 / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001751/0.006986, allocations: 129.4 kB / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.007032, allocations: 132.5 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/0.007187, allocations: 296.2 kB / 280 MB, free: 10.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.007199, allocations: 25.7 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.533e-05/0.007265, allocations: 171.1 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.007283, allocations: 15.91 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.411e-05/0.007317, allocations: 39.3 kB / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.007432, allocations: 0.5001 MB / 280.8 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.415e-05/0.007446, allocations: 8.312 kB / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.933e-05/0.007486, allocations: 76.42 kB / 280.8 MB, free: 9.461 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.421e-05/0.00753, allocations: 51.05 kB / 280.9 MB, free: 9.398 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.007531, allocations: 3.938 kB / 280.9 MB, free: 9.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 8.335e-05/0.007615, allocations: 85.47 kB / 281 MB, free: 9.305 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/0.007624, allocations: 4 kB / 281 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.007628, allocations: 0 / 281 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.146e-06/0.007636, allocations: 4 kB / 281 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.554e-05/0.007681, allocations: 20.39 kB / 281 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.984e-06/0.007683, allocations: 0 / 281 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.427e-05/0.007717, allocations: 11.94 kB / 281 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.007723, allocations: 7.938 kB / 281 MB, free: 9.258 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 6.682e-05/0.00779, allocations: 161.2 kB / 281.2 MB, free: 9.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.983e-05/0.00784, allocations: 73.42 kB / 281.3 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.007949, allocations: 99.36 kB / 281.4 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.007951, allocations: 0 / 281.4 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.007954, allocations: 4 kB / 281.4 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.007957, allocations: 4.062 kB / 281.4 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001063/0.008064, allocations: 145.1 kB / 281.5 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.008066, allocations: 3.984 kB / 281.5 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.812e-05/0.008084, allocations: 8 kB / 281.5 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.008088, allocations: 3.938 kB / 281.5 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.008095, allocations: 8 kB / 281.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.008096, allocations: 0 / 281.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.008098, allocations: 4 kB / 281.5 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.008199, allocations: 151.3 kB / 281.7 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.00824, allocations: 35.77 kB / 281.7 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.00826, allocations: 15.92 kB / 281.7 MB, free: 8.469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.008406, allocations: 8 kB / 281.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.008446, allocations: 3.984 kB / 281.7 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.00846, allocations: 4 kB / 281.7 MB, free: 8.453 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001247/0.008585, allocations: 201.1 kB / 281.9 MB, free: 8.258 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008585, allocations: 0 / 281.9 MB, free: 8.258 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001745/0.00876, allocations: 28 kB / 282 MB, free: 8.23 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.0007958/0.009555, allocations: 415.2 kB / 282.4 MB, free: 7.965 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.009679, allocations: 51.53 kB / 282.4 MB, free: 7.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.009681, allocations: 0 / 282.4 MB, free: 7.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.31e-05/0.009714, allocations: 23.67 kB / 282.4 MB, free: 7.883 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.009992, allocations: 70.67 kB / 282.5 MB, free: 7.816 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004067/0.0104, allocations: 332.8 kB / 282.8 MB, free: 7.457 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.92e-05/0.01045, allocations: 79.97 kB / 282.9 MB, free: 7.359 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.032e-05/0.0105, allocations: 17.48 kB / 282.9 MB, free: 7.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.851e-05/0.01059, allocations: 102.2 kB / 283 MB, free: 7.238 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01059, allocations: 0 / 283 MB, free: 7.238 MB / 266.7 MB Notification: Performance of Templates: time 0.004376/0.01496, allocations: 2.945 MB / 286 MB, free: 4.344 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/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.839162358082831]