Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001195/0.001195, allocations: 201 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008538/0.0008538, allocations: 93.66 kB / 299.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002702, allocations: 4 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3205, allocations: 51.41 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002474/0.3231, allocations: 1.606 MB / 413.7 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.325, allocations: 1.9 MB / 415.6 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.3252, allocations: 0 / 415.6 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003535/0.3255, allocations: 69.44 kB / 415.6 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003317/0.3259, allocations: 115.6 kB / 415.7 MB, free: 22.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007286/0.3266, allocations: 233.8 kB / 416 MB, free: 21.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.3269, allocations: 175.5 kB / 416.1 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.327, allocations: 32.69 kB / 416.2 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.827e-05/0.3271, allocations: 67.66 kB / 416.2 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.3272, allocations: 79.55 kB / 416.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.3273, allocations: 4 kB / 416.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.3274, allocations: 51.97 kB / 416.4 MB, free: 21.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.357e-05/0.3275, allocations: 51.83 kB / 416.4 MB, free: 21.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.936e-05/0.3276, allocations: 101.1 kB / 416.5 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.3279, allocations: 232.7 kB / 416.7 MB, free: 21.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3279, allocations: 0 / 416.7 MB, free: 21.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3279, allocations: 0 / 416.7 MB, free: 21.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.3279, allocations: 0 / 416.7 MB, free: 21.03 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.00067/0.3286, allocations: 0.5079 MB / 417.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.3286, allocations: 8.031 kB / 417.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.983e-05/0.3287, allocations: 24.66 kB / 417.3 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.329, allocations: 299.5 kB / 417.6 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.3291, allocations: 8.375 kB / 417.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.3291, allocations: 8.125 kB / 417.6 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.3294, allocations: 172.4 kB / 417.8 MB, free: 19.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3295, allocations: 4 kB / 417.8 MB, free: 19.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.3295, allocations: 7.938 kB / 417.8 MB, free: 19.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.3295, allocations: 0 / 417.8 MB, free: 19.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001097/0.3296, allocations: 39.92 kB / 417.8 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004694/0.3301, allocations: 474.5 kB / 418.3 MB, free: 19.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.3303, allocations: 146.5 kB / 418.4 MB, free: 19.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.078e-05/0.3304, allocations: 59.41 kB / 418.5 MB, free: 19.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.3304, allocations: 8 kB / 418.5 MB, free: 19.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.3306, allocations: 97 kB / 418.6 MB, free: 18.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.3307, allocations: 0 / 418.6 MB, free: 18.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003747/0.331, allocations: 173.2 kB / 418.7 MB, free: 18.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.45e-05/0.3311, allocations: 183.9 kB / 418.9 MB, free: 18.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.3314, allocations: 343.3 kB / 419.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.3314, allocations: 33.7 kB / 419.3 MB, free: 18.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.529e-05/0.3315, allocations: 128.4 kB / 419.4 MB, free: 18.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.3315, allocations: 15.75 kB / 419.4 MB, free: 18.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.573e-06/0.3315, allocations: 8 kB / 419.4 MB, free: 18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.942e-05/0.3316, allocations: 338.7 kB / 419.8 MB, free: 17.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.734e-05/0.3317, allocations: 23.98 kB / 419.8 MB, free: 17.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.886e-05/0.3318, allocations: 95.7 kB / 419.9 MB, free: 17.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.3319, allocations: 93.08 kB / 420 MB, free: 17.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3319, allocations: 4 kB / 420 MB, free: 17.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000207/0.3321, allocations: 137.3 kB / 420.1 MB, free: 17.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.3322, allocations: 4 kB / 420.1 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.3322, allocations: 7.922 kB / 420.1 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3322, allocations: 4 kB / 420.1 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.3323, allocations: 16 kB / 420.2 MB, free: 17.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.3323, allocations: 7.984 kB / 420.2 MB, free: 17.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.807e-05/0.3324, allocations: 20 kB / 420.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.3324, allocations: 4 kB / 420.2 MB, free: 17.2 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,hold1.u,hold1.y,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.0001286/0.3326, allocations: 161.6 kB / 420.3 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.958e-05/0.3327, allocations: 69.41 kB / 420.4 MB, free: 16.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.077e-05/0.3327, allocations: 29.73 kB / 420.4 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3327, allocations: 320 / 420.4 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3327, allocations: 4 kB / 420.4 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3327, allocations: 3.938 kB / 420.4 MB, free: 16.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.3329, allocations: 257.6 kB / 420.7 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3329, allocations: 0 / 420.7 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.569e-05/0.333, allocations: 15.98 kB / 420.7 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.333, allocations: 0 / 420.7 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.333, allocations: 4 kB / 420.7 MB, free: 16.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.333, allocations: 0 / 420.7 MB, free: 16.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.333, allocations: 4 kB / 420.7 MB, free: 16.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000239/0.3333, allocations: 191.2 kB / 420.9 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.208e-05/0.3334, allocations: 120.7 kB / 421 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.074e-05/0.3334, allocations: 7.938 kB / 421 MB, free: 16.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.281e-05/0.3335, allocations: 4 kB / 421 MB, free: 16.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.953e-05/0.3336, allocations: 15.92 kB / 421.1 MB, free: 16.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.3336, allocations: 4 kB / 421.1 MB, free: 16.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001797/0.3338, allocations: 253.9 kB / 421.3 MB, free: 15.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3338, allocations: 0 / 421.3 MB, free: 15.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002413/0.334, allocations: 32 kB / 421.3 MB, free: 15.94 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.0009996/0.335, allocations: 488.8 kB / 421.8 MB, free: 15.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002096/0.3352, allocations: 79.84 kB / 421.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3353, allocations: 8.25 kB / 421.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.926e-05/0.3353, allocations: 43.97 kB / 421.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/0.3358, allocations: 63.44 kB / 422 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005433/0.3363, allocations: 442.4 kB / 422.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.3365, allocations: 0.7517 MB / 423.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.115e-05/0.3366, allocations: 29.53 kB / 423.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.3367, allocations: 23.42 kB / 423.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3367, allocations: 7.938 kB / 423.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of Templates: time 0.005786/0.3425, allocations: 2.784 MB / 426 MB, free: 11.32 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/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