Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008628/0.0008628, allocations: 185 kB / 16.72 MB, free: 4.84 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 225.7 MB / 243.2 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007951/0.0007953, allocations: 93.33 kB / 294.4 MB, free: 9.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002706, allocations: 8 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2725, allocations: 50.41 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002213/0.2747, allocations: 1.574 MB / 406.2 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.2765, allocations: 1.441 MB / 407.6 MB, free: 28.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.2768, allocations: 0.8438 kB / 407.6 MB, free: 28.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003588/0.2771, allocations: 63.8 kB / 407.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003024/0.2774, allocations: 81.12 kB / 407.7 MB, free: 28.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008066/0.2783, allocations: 233.3 kB / 408 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.2785, allocations: 163.5 kB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.2787, allocations: 31.81 kB / 408.2 MB, free: 27.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.2788, allocations: 67.66 kB / 408.2 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.2789, allocations: 72.8 kB / 408.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.279, allocations: 0 / 408.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.2791, allocations: 54.25 kB / 408.3 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.332e-05/0.2792, allocations: 51.77 kB / 408.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.987e-05/0.2793, allocations: 101.1 kB / 408.5 MB, free: 27.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003278/0.2797, allocations: 220.7 kB / 408.7 MB, free: 27.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2797, allocations: 4 kB / 408.7 MB, free: 27.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2797, allocations: 3.938 kB / 408.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.936e-06/0.2797, allocations: 0 / 408.7 MB, free: 27.05 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.0006738/0.2804, allocations: 0.5035 MB / 409.2 MB, free: 26.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.2804, allocations: 11.97 kB / 409.2 MB, free: 26.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.353e-05/0.2805, allocations: 24.66 kB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003258/0.2808, allocations: 279.6 kB / 409.5 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.2809, allocations: 8.375 kB / 409.5 MB, free: 26.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.2809, allocations: 12.12 kB / 409.5 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000327/0.2812, allocations: 174.4 kB / 409.7 MB, free: 25.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2813, allocations: 0 / 409.7 MB, free: 25.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.2813, allocations: 4 kB / 409.7 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.2813, allocations: 4 kB / 409.7 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.2814, allocations: 35.92 kB / 409.8 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005513/0.282, allocations: 482.4 kB / 410.2 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000221/0.2822, allocations: 142.5 kB / 410.4 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.95e-05/0.2823, allocations: 55.42 kB / 410.4 MB, free: 25.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.2823, allocations: 7.984 kB / 410.4 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.2826, allocations: 105 kB / 410.5 MB, free: 24.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.2826, allocations: 0 / 410.5 MB, free: 24.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003962/0.283, allocations: 165.2 kB / 410.7 MB, free: 24.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.283, allocations: 183.9 kB / 410.9 MB, free: 24.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.2833, allocations: 335 kB / 411.2 MB, free: 24.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.2833, allocations: 29.7 kB / 411.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.267e-05/0.2834, allocations: 132.3 kB / 411.4 MB, free: 24.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.2835, allocations: 27.77 kB / 411.4 MB, free: 24.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-06/0.2835, allocations: 0 / 411.4 MB, free: 24.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.529e-05/0.2835, allocations: 330.8 kB / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.596e-05/0.2836, allocations: 27.98 kB / 411.7 MB, free: 23.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.116e-05/0.2837, allocations: 99.64 kB / 411.8 MB, free: 23.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.2839, allocations: 101.3 kB / 411.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.2839, allocations: 0 / 411.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002274/0.2841, allocations: 133.3 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.2841, allocations: 4 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.2841, allocations: 0 / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.2842, allocations: 4 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.2843, allocations: 19.98 kB / 412.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.2843, allocations: 7.938 kB / 412.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.926e-05/0.2844, allocations: 23.94 kB / 412.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.2844, allocations: 4 kB / 412.1 MB, free: 23.26 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.0001071/0.2845, allocations: 157.8 kB / 412.3 MB, free: 23.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.74e-05/0.2846, allocations: 69.36 kB / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.495e-05/0.2847, allocations: 33.64 kB / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2847, allocations: 0 / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.2847, allocations: 7.984 kB / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2847, allocations: 8 kB / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001892/0.2849, allocations: 237.6 kB / 412.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2849, allocations: 4 kB / 412.6 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.84e-05/0.285, allocations: 15.98 kB / 412.7 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.285, allocations: 0 / 412.7 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.285, allocations: 4 kB / 412.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.285, allocations: 0 / 412.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2851, allocations: 3.938 kB / 412.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002372/0.2853, allocations: 187.2 kB / 412.8 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.363e-05/0.2854, allocations: 124.7 kB / 413 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.2854, allocations: 4.062 kB / 413 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.882e-05/0.2855, allocations: 8 kB / 413 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/0.2856, allocations: 11.92 kB / 413 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.2856, allocations: 12 kB / 413 MB, free: 22.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001773/0.2858, allocations: 241.9 kB / 413.2 MB, free: 22.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.183e-06/0.2858, allocations: 0 / 413.2 MB, free: 22.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002749/0.2861, allocations: 39.94 kB / 413.3 MB, free: 22.01 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.0009478/0.287, allocations: 491.2 kB / 413.8 MB, free: 21.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002337/0.2873, allocations: 79.84 kB / 413.8 MB, free: 21.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.2873, allocations: 4.312 kB / 413.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.7e-05/0.2874, allocations: 43.91 kB / 413.9 MB, free: 21.53 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.2878, allocations: 64.67 kB / 413.9 MB, free: 21.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006178/0.2884, allocations: 432.9 kB / 414.4 MB, free: 21.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.2886, allocations: 0.744 MB / 415.1 MB, free: 20.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.2887, allocations: 37.5 kB / 415.1 MB, free: 20.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.068e-05/0.2888, allocations: 23.44 kB / 415.2 MB, free: 20.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.673e-06/0.2888, allocations: 4 kB / 415.2 MB, free: 20.18 MB / 298.7 MB Notification: Performance of Templates: time 0.00604/0.2948, allocations: 2.77 MB / 417.9 MB, free: 17.42 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/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