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.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 183 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.421/1.421, allocations: 225.7 MB / 243.2 MB, free: 8.488 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.0008668/0.0008667, allocations: 97.3 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003075, allocations: 7.938 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2239, allocations: 50.42 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.001651/0.2256, allocations: 1.555 MB / 406.1 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.2269, allocations: 1.423 MB / 407.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.867e-05/0.227, allocations: 4.469 kB / 407.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002575/0.2273, allocations: 60.67 kB / 407.6 MB, free: 28.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001728/0.2274, allocations: 76.86 kB / 407.7 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000548/0.228, allocations: 230.1 kB / 407.9 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001562/0.2282, allocations: 159.5 kB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.858e-05/0.2283, allocations: 31.41 kB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.187e-05/0.2283, allocations: 67.64 kB / 408.2 MB, free: 27.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.568e-05/0.2284, allocations: 71.62 kB / 408.2 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.2285, allocations: 5.375 kB / 408.2 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.2286, allocations: 51.91 kB / 408.3 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.456e-05/0.2286, allocations: 47.83 kB / 408.3 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.143e-05/0.2287, allocations: 93.19 kB / 408.4 MB, free: 27.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.2289, allocations: 221.4 kB / 408.7 MB, free: 27.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.2289, allocations: 0.9688 kB / 408.7 MB, free: 27.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2289, allocations: 0 / 408.7 MB, free: 27.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.2289, allocations: 3.938 kB / 408.7 MB, free: 27.13 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004781/0.2294, allocations: 0.4913 MB / 409.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.2295, allocations: 12.03 kB / 409.2 MB, free: 26.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.2295, allocations: 20.66 kB / 409.2 MB, free: 26.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/0.2297, allocations: 295.5 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.483e-05/0.2298, allocations: 12.31 kB / 409.5 MB, free: 26.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.2298, allocations: 11.19 kB / 409.5 MB, free: 26.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.2301, allocations: 147.6 kB / 409.6 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.2301, allocations: 4 kB / 409.6 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.2301, allocations: 4 kB / 409.6 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2301, allocations: 0 / 409.6 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.57e-05/0.2302, allocations: 39.92 kB / 409.7 MB, free: 26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003593/0.2306, allocations: 374.5 kB / 410 MB, free: 25.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.2308, allocations: 115.9 kB / 410.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.896e-05/0.2309, allocations: 46.56 kB / 410.2 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.2309, allocations: 11.94 kB / 410.2 MB, free: 25.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.2311, allocations: 75.38 kB / 410.3 MB, free: 25.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.2311, allocations: 0 / 410.3 MB, free: 25.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003015/0.2314, allocations: 145.3 kB / 410.4 MB, free: 25.13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.2314, allocations: 170.4 kB / 410.6 MB, free: 24.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.2317, allocations: 322.7 kB / 410.9 MB, free: 24.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.2317, allocations: 33.7 kB / 410.9 MB, free: 24.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.456e-05/0.2318, allocations: 128.1 kB / 411.1 MB, free: 24.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.2318, allocations: 23.73 kB / 411.1 MB, free: 24.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.2318, allocations: 0 / 411.1 MB, free: 24.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.682e-05/0.2318, allocations: 338.8 kB / 411.4 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.883e-05/0.2319, allocations: 23.98 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.373e-05/0.232, allocations: 94.72 kB / 411.5 MB, free: 23.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.2321, allocations: 84.22 kB / 411.6 MB, free: 23.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2321, allocations: 0 / 411.6 MB, free: 23.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001762/0.2323, allocations: 117.6 kB / 411.7 MB, free: 23.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.2323, allocations: 8 kB / 411.7 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2323, allocations: 4.062 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.2323, allocations: 4 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.332e-05/0.2324, allocations: 19.92 kB / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.2325, allocations: 4 kB / 411.8 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.886e-05/0.2325, allocations: 24.03 kB / 411.8 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.2325, allocations: 7.984 kB / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (11): * Single equations (assignments): 11 * 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 8.615e-05/0.2326, allocations: 149.8 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.943e-05/0.2327, allocations: 73.34 kB / 412 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.368e-05/0.2328, allocations: 21.7 kB / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.2328, allocations: 4 kB / 412.1 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2328, allocations: 0 / 412.1 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2328, allocations: 4 kB / 412.1 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.2329, allocations: 241.5 kB / 412.3 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2329, allocations: 0 / 412.3 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.664e-05/0.233, allocations: 11.98 kB / 412.3 MB, free: 23.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.233, allocations: 4 kB / 412.3 MB, free: 23.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.233, allocations: 4 kB / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.233, allocations: 4 kB / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.233, allocations: 0 / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/0.2332, allocations: 162.5 kB / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.679e-05/0.2333, allocations: 124.7 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.2333, allocations: 0 / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.091e-05/0.2334, allocations: 7.938 kB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.311e-05/0.2334, allocations: 11.98 kB / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.2335, allocations: 7.938 kB / 412.6 MB, free: 22.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001563/0.2336, allocations: 241.9 kB / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2336, allocations: 0 / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002217/0.2338, allocations: 36 kB / 412.9 MB, free: 22.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,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 (9): * Single equations (assignments): 7 * 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.0007824/0.2346, allocations: 478.1 kB / 413.4 MB, free: 22.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001769/0.2348, allocations: 71.91 kB / 413.4 MB, free: 22.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.2348, allocations: 0 / 413.4 MB, free: 22.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.483e-05/0.2349, allocations: 35.92 kB / 413.5 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.2352, allocations: 72.28 kB / 413.5 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004249/0.2357, allocations: 408.7 kB / 413.9 MB, free: 21.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.2358, allocations: 0.7478 MB / 414.7 MB, free: 20.73 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.713e-05/0.2359, allocations: 29.52 kB / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.2359, allocations: 23.42 kB / 414.7 MB, free: 20.67 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.236, allocations: 3.938 kB / 414.7 MB, free: 20.67 MB / 298.7 MB Notification: Performance of Templates: time 0.004656/0.2406, allocations: 2.698 MB / 417.4 MB, free: 17.99 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches