Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001615/0.001615, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 120.4 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000942/0.0009421, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3169, allocations: 50.45 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003357/0.3203, allocations: 1.982 MB / 409 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001952/0.3223, allocations: 1.308 MB / 410.3 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.3225, allocations: 4 kB / 410.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003725/0.3229, allocations: 59.73 kB / 410.4 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002786/0.3232, allocations: 111.6 kB / 410.5 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006823/0.3239, allocations: 238 kB / 410.7 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001907/0.3241, allocations: 175.5 kB / 410.9 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.3243, allocations: 36.53 kB / 410.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.098e-05/0.3244, allocations: 67.69 kB / 411 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.901e-05/0.3245, allocations: 83.56 kB / 411.1 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.262e-05/0.3245, allocations: 8 kB / 411.1 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.3246, allocations: 51.97 kB / 411.2 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.493e-05/0.3247, allocations: 51.81 kB / 411.2 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.273e-05/0.3248, allocations: 83.36 kB / 411.3 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.3251, allocations: 240.8 kB / 411.5 MB, free: 23.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.3251, allocations: 0 / 411.5 MB, free: 23.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3251, allocations: 0 / 411.5 MB, free: 23.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.3251, allocations: 0 / 411.5 MB, free: 23.36 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.0008622/0.326, allocations: 0.5389 MB / 412.1 MB, free: 22.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.3261, allocations: 8.875 kB / 412.1 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.706e-05/0.3262, allocations: 28.66 kB / 412.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.3266, allocations: 287.6 kB / 412.4 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.3266, allocations: 12.36 kB / 412.4 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/0.3267, allocations: 8.125 kB / 412.4 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004117/0.3271, allocations: 175 kB / 412.6 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.3271, allocations: 3.938 kB / 412.6 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.3271, allocations: 0 / 412.6 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.3271, allocations: 0 / 412.6 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.3273, allocations: 47.84 kB / 412.6 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006422/0.3279, allocations: 482.5 kB / 413.1 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002698/0.3282, allocations: 142.5 kB / 413.2 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.701e-05/0.3283, allocations: 55.42 kB / 413.3 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.615e-05/0.3284, allocations: 11.98 kB / 413.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003489/0.3287, allocations: 97.03 kB / 413.4 MB, free: 21.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.264e-06/0.3288, allocations: 3.984 kB / 413.4 MB, free: 21.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004679/0.3292, allocations: 169.3 kB / 413.6 MB, free: 21.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.948e-05/0.3293, allocations: 187.9 kB / 413.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.3296, allocations: 343.4 kB / 414.1 MB, free: 20.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.3296, allocations: 29.7 kB / 414.1 MB, free: 20.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.09e-05/0.3297, allocations: 132.3 kB / 414.2 MB, free: 20.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.3298, allocations: 23.73 kB / 414.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-05/0.3298, allocations: 29.72 kB / 414.3 MB, free: 20.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.3299, allocations: 338.8 kB / 414.6 MB, free: 19.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.068e-05/0.33, allocations: 27.92 kB / 414.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.411e-05/0.3301, allocations: 95.7 kB / 414.7 MB, free: 19.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.3303, allocations: 101 kB / 414.8 MB, free: 19.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.3303, allocations: 0 / 414.8 MB, free: 19.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002226/0.3305, allocations: 141.2 kB / 415 MB, free: 19.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.3306, allocations: 4 kB / 415 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3306, allocations: 0 / 415 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.3306, allocations: 4 kB / 415 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.3307, allocations: 19.98 kB / 415 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.3308, allocations: 8.156 kB / 415 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.12e-05/0.3309, allocations: 11.94 kB / 415 MB, free: 19.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.3309, allocations: 7.938 kB / 415 MB, free: 19.45 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.0001541/0.331, allocations: 159.3 kB / 415.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.013e-05/0.3311, allocations: 69.36 kB / 415.3 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.608e-05/0.3312, allocations: 33.67 kB / 415.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3312, allocations: 0 / 415.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.3312, allocations: 4 kB / 415.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.3312, allocations: 11.98 kB / 415.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002066/0.3314, allocations: 253.5 kB / 415.6 MB, free: 18.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3315, allocations: 320 / 415.6 MB, free: 18.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.524e-05/0.3315, allocations: 16 kB / 415.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3315, allocations: 0 / 415.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.3315, allocations: 11.98 kB / 415.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3316, allocations: 0 / 415.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3316, allocations: 4 kB / 415.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005342/0.3321, allocations: 0.7939 MB / 416.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.919e-05/0.3322, allocations: 124.7 kB / 416.5 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.3323, allocations: 7.938 kB / 416.5 MB, free: 17.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.083e-05/0.3323, allocations: 0 / 416.5 MB, free: 17.83 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.3324, allocations: 19.98 kB / 416.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.3324, allocations: 4 kB / 416.5 MB, free: 17.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001828/0.3326, allocations: 249.9 kB / 416.8 MB, free: 17.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3326, allocations: 0 / 416.8 MB, free: 17.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003615/0.333, allocations: 36 kB / 416.8 MB, free: 17.53 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.0009853/0.334, allocations: 425.2 kB / 417.2 MB, free: 17.24 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002215/0.3342, allocations: 87.83 kB / 417.3 MB, free: 17.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3342, allocations: 0 / 417.3 MB, free: 17.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.574e-05/0.3343, allocations: 31.98 kB / 417.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004233/0.3347, allocations: 79.66 kB / 417.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007668/0.3355, allocations: 0.5625 MB / 418 MB, free: 16.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.3357, allocations: 0.7518 MB / 418.7 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.934e-05/0.3358, allocations: 33.52 kB / 418.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.821e-05/0.3359, allocations: 23.42 kB / 418.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3359, allocations: 0 / 418.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of Templates: time 0.006585/0.3425, allocations: 2.901 MB / 421.7 MB, free: 12.73 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches