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.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 182.6 kB / 16.71 MB, free: 4.969 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.384/1.384, allocations: 225.7 MB / 243.2 MB, free: 8.508 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.0008182/0.0008182, allocations: 103.4 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.0002792, allocations: 7.938 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2879, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.002277/0.2902, allocations: 1.574 MB / 406.2 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.2918, allocations: 1.453 MB / 407.6 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.292, allocations: 7.938 kB / 407.6 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00031/0.2923, allocations: 59.8 kB / 407.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.2926, allocations: 83.72 kB / 407.8 MB, free: 28.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006933/0.2933, allocations: 227.6 kB / 408 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.2935, allocations: 175.5 kB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.2936, allocations: 29.55 kB / 408.2 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.165e-05/0.2937, allocations: 68.47 kB / 408.2 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.2938, allocations: 75.62 kB / 408.3 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.2938, allocations: 4.844 kB / 408.3 MB, free: 27.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.294, allocations: 51.91 kB / 408.4 MB, free: 27.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.733e-05/0.2941, allocations: 48.52 kB / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.107e-05/0.2941, allocations: 97.12 kB / 408.5 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002343/0.2944, allocations: 233.2 kB / 408.7 MB, free: 27.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.2944, allocations: 4 kB / 408.7 MB, free: 27.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2944, allocations: 2.812 kB / 408.7 MB, free: 27.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.2944, allocations: 0 / 408.7 MB, free: 27.06 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.0005926/0.295, allocations: 0.5 MB / 409.2 MB, free: 26.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2951, allocations: 12.03 kB / 409.3 MB, free: 26.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.44e-05/0.2951, allocations: 24.66 kB / 409.3 MB, free: 26.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.2954, allocations: 289.4 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.2954, allocations: 8.375 kB / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.756e-05/0.2955, allocations: 8.125 kB / 409.6 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/0.2958, allocations: 180.4 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.2958, allocations: 3.938 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.2958, allocations: 0 / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2958, allocations: 4 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.296, allocations: 47.91 kB / 409.8 MB, free: 25.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004464/0.2964, allocations: 399.2 kB / 410.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002151/0.2967, allocations: 146.5 kB / 410.3 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.912e-05/0.2968, allocations: 55.42 kB / 410.4 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.2968, allocations: 7.984 kB / 410.4 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/0.297, allocations: 79.33 kB / 410.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.495e-06/0.297, allocations: 3.984 kB / 410.5 MB, free: 25.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003796/0.2974, allocations: 169.2 kB / 410.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.475e-05/0.2975, allocations: 196.2 kB / 410.8 MB, free: 24.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.2978, allocations: 334.6 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.2978, allocations: 29.7 kB / 411.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/0.2979, allocations: 128.4 kB / 411.3 MB, free: 24.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.21e-05/0.2979, allocations: 15.81 kB / 411.3 MB, free: 24.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-06/0.2979, allocations: 0 / 411.3 MB, free: 24.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.96e-05/0.298, allocations: 338.8 kB / 411.7 MB, free: 23.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.294e-05/0.298, allocations: 27.98 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.279e-05/0.2981, allocations: 100.5 kB / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.2983, allocations: 97.94 kB / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2983, allocations: 0 / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001998/0.2985, allocations: 137.4 kB / 412 MB, free: 23.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2985, allocations: 12.03 kB / 412 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.2985, allocations: 3.984 kB / 412 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.2985, allocations: 4 kB / 412 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.2987, allocations: 20 kB / 412.1 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2987, allocations: 11.92 kB / 412.1 MB, free: 23.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.62e-05/0.2988, allocations: 11.88 kB / 412.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.2988, allocations: 4 kB / 412.1 MB, free: 23.33 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,shiftSample1.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 9.881e-05/0.2989, allocations: 153.8 kB / 412.2 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.909e-05/0.299, allocations: 85.66 kB / 412.3 MB, free: 23.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.193e-05/0.299, allocations: 29.7 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.299, allocations: 0 / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2991, allocations: 8 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2991, allocations: 3.938 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.2992, allocations: 241.6 kB / 412.6 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.2993, allocations: 4 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.148e-05/0.2993, allocations: 19.92 kB / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2993, allocations: 0 / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.2994, allocations: 12.09 kB / 412.6 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2994, allocations: 7.875 kB / 412.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.2994, allocations: 0 / 412.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.2996, allocations: 179.3 kB / 412.8 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.315e-05/0.2997, allocations: 124.7 kB / 412.9 MB, free: 22.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.262e-05/0.2997, allocations: 7.984 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.487e-05/0.2998, allocations: 7.938 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.2999, allocations: 11.98 kB / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.2999, allocations: 7.938 kB / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002019/0.3001, allocations: 241.9 kB / 413.2 MB, free: 22.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3001, allocations: 0 / 413.2 MB, free: 22.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002594/0.3004, allocations: 43.89 kB / 413.3 MB, free: 22.06 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,backSample1.y,shiftSample1.y,backSample1.u,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.0009779/0.3014, allocations: 494 kB / 413.7 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002106/0.3016, allocations: 83.84 kB / 413.8 MB, free: 21.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3016, allocations: 0 / 413.8 MB, free: 21.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.056e-05/0.3017, allocations: 27.98 kB / 413.9 MB, free: 21.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004365/0.3021, allocations: 75.38 kB / 413.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000523/0.3026, allocations: 437.2 kB / 414.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001724/0.3028, allocations: 0.7478 MB / 415.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.814e-05/0.3029, allocations: 29.52 kB / 415.1 MB, free: 20.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.754e-05/0.303, allocations: 23.44 kB / 415.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.303, allocations: 4 kB / 415.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of Templates: time 0.005617/0.3086, allocations: 2.889 MB / 418 MB, free: 17.35 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches