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.BooleanSignals.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.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.0009966/0.0009963, allocations: 182.5 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.257/1.257, allocations: 225.7 MB / 243.2 MB, free: 8.449 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.0009709/0.0009713, allocations: 106 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002778/0.0002779, allocations: 15.94 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2284, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.001789/0.2302, allocations: 1.566 MB / 406.1 MB, free: 29.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.2316, allocations: 1.195 MB / 407.3 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.2317, allocations: 4 kB / 407.3 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004377/0.2322, allocations: 140.4 kB / 407.5 MB, free: 28.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002289/0.2324, allocations: 100.7 kB / 407.6 MB, free: 28.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000489/0.2329, allocations: 185.4 kB / 407.8 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.2331, allocations: 183.5 kB / 407.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.906e-05/0.2332, allocations: 23.27 kB / 408 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.899e-05/0.2333, allocations: 72.8 kB / 408 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.023e-05/0.2334, allocations: 59.7 kB / 408.1 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.2334, allocations: 4 kB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.2335, allocations: 43.91 kB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.073e-05/0.2336, allocations: 36.81 kB / 408.2 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.553e-05/0.2336, allocations: 89.23 kB / 408.3 MB, free: 27.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002156/0.2339, allocations: 185.9 kB / 408.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2339, allocations: 0 / 408.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2339, allocations: 0 / 408.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.157e-06/0.2339, allocations: 4.906 kB / 408.4 MB, free: 27.38 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.0005556/0.2345, allocations: 496.4 kB / 408.9 MB, free: 26.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.2345, allocations: 8.031 kB / 408.9 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.26e-05/0.2345, allocations: 24.66 kB / 409 MB, free: 26.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.2348, allocations: 254.9 kB / 409.2 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.2348, allocations: 4.375 kB / 409.2 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.2348, allocations: 12.12 kB / 409.2 MB, free: 26.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002591/0.2351, allocations: 150.7 kB / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.2351, allocations: 0 / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.2352, allocations: 4 kB / 409.4 MB, free: 26.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2352, allocations: 0 / 409.4 MB, free: 26.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.859e-05/0.2353, allocations: 27.98 kB / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003791/0.2356, allocations: 374.2 kB / 409.8 MB, free: 25.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.2358, allocations: 107.9 kB / 409.9 MB, free: 25.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.232e-05/0.2359, allocations: 50.5 kB / 409.9 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.2359, allocations: 0 / 409.9 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001271/0.2361, allocations: 79.31 kB / 410 MB, free: 25.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.263e-06/0.2361, allocations: 0 / 410 MB, free: 25.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002962/0.2364, allocations: 141.4 kB / 410.1 MB, free: 25.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.2364, allocations: 136.5 kB / 410.3 MB, free: 25.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/0.2367, allocations: 264.8 kB / 410.5 MB, free: 25.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.2367, allocations: 33.7 kB / 410.6 MB, free: 24.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.2368, allocations: 112.1 kB / 410.7 MB, free: 24.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.2368, allocations: 11.81 kB / 410.7 MB, free: 24.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-06/0.2368, allocations: 4.25 kB / 410.7 MB, free: 24.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.25e-05/0.2369, allocations: 338.8 kB / 411 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.277e-05/0.2369, allocations: 16 kB / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.239e-05/0.237, allocations: 73.92 kB / 411.1 MB, free: 24.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.3e-05/0.2371, allocations: 80.25 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2371, allocations: 0 / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000161/0.2373, allocations: 109.4 kB / 411.3 MB, free: 24.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.2373, allocations: 11.94 kB / 411.3 MB, free: 24.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2373, allocations: 3.984 kB / 411.3 MB, free: 24.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.2373, allocations: 4.125 kB / 411.3 MB, free: 24.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.864e-05/0.2374, allocations: 12 kB / 411.3 MB, free: 24.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.2374, allocations: 0 / 411.3 MB, free: 24.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.492e-05/0.2375, allocations: 15.88 kB / 411.3 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-06/0.2375, allocations: 7.984 kB / 411.3 MB, free: 24.15 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,sample1.u,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.068e-05/0.2376, allocations: 145.7 kB / 411.5 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.701e-05/0.2376, allocations: 61.36 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.122e-05/0.2377, allocations: 29.77 kB / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2377, allocations: 4.312 kB / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.2377, allocations: 0 / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.2377, allocations: 3.938 kB / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.2378, allocations: 225.7 kB / 411.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2378, allocations: 0 / 411.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.327e-05/0.2379, allocations: 11.98 kB / 411.8 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.2379, allocations: 0 / 411.8 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.2379, allocations: 0 / 411.8 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.2379, allocations: 4 kB / 411.8 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2379, allocations: 0 / 411.8 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001682/0.2381, allocations: 158.5 kB / 412 MB, free: 23.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.743e-05/0.2381, allocations: 116.8 kB / 412.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.2382, allocations: 0 / 412.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.716e-05/0.2382, allocations: 11.98 kB / 412.1 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.359e-05/0.2383, allocations: 4 kB / 412.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.2383, allocations: 11.94 kB / 412.1 MB, free: 23.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000122/0.2384, allocations: 192.5 kB / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2384, allocations: 0 / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002094/0.2386, allocations: 35.94 kB / 412.3 MB, free: 23.04 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,sample1.u,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.0008353/0.2395, allocations: 485.8 kB / 412.8 MB, free: 22.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001796/0.2397, allocations: 68.09 kB / 412.9 MB, free: 22.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2397, allocations: 0 / 412.9 MB, free: 22.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.904e-05/0.2397, allocations: 20 kB / 412.9 MB, free: 22.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.2401, allocations: 68.3 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004448/0.2406, allocations: 347.7 kB / 413.3 MB, free: 22.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001778/0.2407, allocations: 0.7322 MB / 414 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.352e-05/0.2408, allocations: 21.53 kB / 414.1 MB, free: 21.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.79e-05/0.2409, allocations: 19.42 kB / 414.1 MB, free: 21.37 MB / 298.7 MB Notification: Performance of SimCode: time 3.8e-07/0.2409, allocations: 0 / 414.1 MB, free: 21.37 MB / 298.7 MB Notification: Performance of Templates: time 0.004588/0.2455, allocations: 2.322 MB / 416.4 MB, free: 19.07 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches