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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001355/0.001354, allocations: 109.1 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008434/0.0008435, allocations: 31.95 kB / 350 MB, free: 100 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.273, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.00381/0.2769, allocations: 1.956 MB / 401.4 MB, free: 31.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.2789, allocations: 1.13 MB / 402.6 MB, free: 30.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.2791, allocations: 7.938 kB / 402.6 MB, free: 30.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004161/0.2795, allocations: 55.73 kB / 402.6 MB, free: 30.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000248/0.2798, allocations: 79.73 kB / 402.7 MB, free: 30.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008521/0.2807, allocations: 234.8 kB / 402.9 MB, free: 29.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.2809, allocations: 163.5 kB / 403.1 MB, free: 29.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.2811, allocations: 33.53 kB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.758e-05/0.2812, allocations: 71.64 kB / 403.2 MB, free: 29.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.2813, allocations: 75.67 kB / 403.3 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.753e-05/0.2814, allocations: 8 kB / 403.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001935/0.2816, allocations: 63.83 kB / 403.3 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.986e-05/0.2817, allocations: 43.84 kB / 403.4 MB, free: 29.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.748e-05/0.2818, allocations: 71.48 kB / 403.4 MB, free: 29.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003006/0.2821, allocations: 244.7 kB / 403.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2821, allocations: 0 / 403.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2821, allocations: 0 / 403.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.2821, allocations: 0 / 403.7 MB, free: 29.16 MB / 298.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.0008444/0.283, allocations: 0.5326 MB / 404.2 MB, free: 28.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.865e-05/0.283, allocations: 8.031 kB / 404.2 MB, free: 28.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.097e-05/0.2831, allocations: 24.66 kB / 404.2 MB, free: 28.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.2835, allocations: 283.6 kB / 404.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.2835, allocations: 8.375 kB / 404.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.942e-05/0.2835, allocations: 12.12 kB / 404.5 MB, free: 28.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.2839, allocations: 177.2 kB / 404.7 MB, free: 28.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.2839, allocations: 0 / 404.7 MB, free: 28.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.284, allocations: 8 kB / 404.7 MB, free: 28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.284, allocations: 0 / 404.7 MB, free: 28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.2841, allocations: 39.92 kB / 404.8 MB, free: 27.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004956/0.2846, allocations: 482.4 kB / 405.2 MB, free: 27.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.2848, allocations: 146.5 kB / 405.4 MB, free: 27.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.256e-05/0.2849, allocations: 63.42 kB / 405.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.869e-05/0.285, allocations: 0 / 405.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002839/0.2853, allocations: 96.97 kB / 405.5 MB, free: 27.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.2853, allocations: 4 kB / 405.5 MB, free: 27.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004093/0.2857, allocations: 173.2 kB / 405.7 MB, free: 26.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.258e-05/0.2858, allocations: 187.9 kB / 405.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002818/0.2861, allocations: 326.7 kB / 406.2 MB, free: 26.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.2861, allocations: 33.7 kB / 406.2 MB, free: 26.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.153e-05/0.2862, allocations: 124.3 kB / 406.4 MB, free: 26.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.617e-05/0.2862, allocations: 20.17 kB / 406.4 MB, free: 26.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.226e-05/0.2863, allocations: 37.7 kB / 406.4 MB, free: 26.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.61e-05/0.2864, allocations: 338.8 kB / 406.8 MB, free: 25.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.766e-05/0.2865, allocations: 23.98 kB / 406.8 MB, free: 25.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.581e-05/0.2866, allocations: 103.6 kB / 406.9 MB, free: 25.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.2867, allocations: 93.08 kB / 407 MB, free: 25.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2867, allocations: 0 / 407 MB, free: 25.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002018/0.2869, allocations: 145.2 kB / 407.1 MB, free: 25.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.287, allocations: 8 kB / 407.1 MB, free: 25.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.287, allocations: 0 / 407.1 MB, free: 25.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.287, allocations: 4 kB / 407.1 MB, free: 25.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.2871, allocations: 23.92 kB / 407.1 MB, free: 25.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.2871, allocations: 4 kB / 407.1 MB, free: 25.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.14e-05/0.2872, allocations: 11.88 kB / 407.2 MB, free: 25.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.2872, allocations: 4 kB / 407.2 MB, free: 25.29 MB / 298.7 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.0001162/0.2873, allocations: 161.9 kB / 407.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.801e-05/0.2874, allocations: 77.34 kB / 407.4 MB, free: 25.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.584e-05/0.2875, allocations: 25.72 kB / 407.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.2875, allocations: 3.984 kB / 407.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2875, allocations: 368 / 407.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.2875, allocations: 11.92 kB / 407.4 MB, free: 25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001814/0.2877, allocations: 245.5 kB / 407.7 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2877, allocations: 3.938 kB / 407.7 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.556e-05/0.2878, allocations: 19.98 kB / 407.7 MB, free: 24.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.2878, allocations: 8 kB / 407.7 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.2878, allocations: 0 / 407.7 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2878, allocations: 4 kB / 407.7 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2878, allocations: 3.984 kB / 407.7 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005073/0.2884, allocations: 0.7939 MB / 408.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.682e-05/0.2885, allocations: 112.8 kB / 408.6 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.2885, allocations: 15.92 kB / 408.6 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.884e-05/0.2886, allocations: 0 / 408.6 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6e-05/0.2886, allocations: 15.98 kB / 408.7 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.2887, allocations: 4 kB / 408.7 MB, free: 23.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001722/0.2888, allocations: 241.9 kB / 408.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2888, allocations: 7.938 kB / 408.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003506/0.2892, allocations: 35.98 kB / 408.9 MB, free: 23.37 MB / 298.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.001005/0.2902, allocations: 426.2 kB / 409.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.2905, allocations: 75.91 kB / 409.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.2905, allocations: 0 / 409.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.193e-05/0.2906, allocations: 44.3 kB / 409.5 MB, free: 22.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004715/0.2911, allocations: 72.34 kB / 409.5 MB, free: 22.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006099/0.2917, allocations: 0.5534 MB / 410.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.2919, allocations: 0.7518 MB / 410.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.99e-05/0.292, allocations: 25.53 kB / 410.9 MB, free: 21.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.714e-05/0.292, allocations: 23.42 kB / 410.9 MB, free: 21.49 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.292, allocations: 3.938 kB / 410.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of Templates: time 0.008667/0.3007, allocations: 2.875 MB / 413.8 MB, free: 18.64 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches