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.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.BooleanSignals.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.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.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.001061/0.001061, allocations: 183.7 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.252/1.252, allocations: 225.7 MB / 243.2 MB, free: 10.24 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.0007842/0.0007843, allocations: 98.12 kB / 294.4 MB, free: 9.742 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002736/0.0002739, allocations: 7.938 kB / 354.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2244, allocations: 50.42 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.001699/0.2262, allocations: 1.582 MB / 406.2 MB, free: 29.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.2273, allocations: 1.219 MB / 407.4 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.831e-05/0.2275, allocations: 9.188 kB / 407.4 MB, free: 28.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004781/0.2279, allocations: 151.6 kB / 407.5 MB, free: 28.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.2282, allocations: 99.47 kB / 407.6 MB, free: 28.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.2285, allocations: 191.5 kB / 407.8 MB, free: 28.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.2287, allocations: 187.4 kB / 408 MB, free: 27.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.259e-05/0.2288, allocations: 30.95 kB / 408 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.687e-05/0.2289, allocations: 71.64 kB / 408.1 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.627e-05/0.229, allocations: 72.5 kB / 408.2 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.805e-05/0.229, allocations: 0 / 408.2 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.196e-05/0.2291, allocations: 39.92 kB / 408.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.067e-05/0.2292, allocations: 39.84 kB / 408.3 MB, free: 27.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.85e-05/0.2292, allocations: 89.23 kB / 408.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.2294, allocations: 208.8 kB / 408.5 MB, free: 27.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2294, allocations: 0 / 408.5 MB, free: 27.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2294, allocations: 0 / 408.5 MB, free: 27.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.2294, allocations: 0 / 408.5 MB, free: 27.34 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.0004862/0.2299, allocations: 0.4897 MB / 409 MB, free: 26.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.887e-05/0.23, allocations: 12.03 kB / 409 MB, free: 26.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.947e-05/0.23, allocations: 24.66 kB / 409.1 MB, free: 26.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002299/0.2302, allocations: 270.8 kB / 409.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.2303, allocations: 384 / 409.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.2303, allocations: 20.06 kB / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.2306, allocations: 167.5 kB / 409.5 MB, free: 26.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.2306, allocations: 0 / 409.5 MB, free: 26.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.2306, allocations: 4 kB / 409.5 MB, free: 26.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.2306, allocations: 3.984 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.621e-05/0.2307, allocations: 43.91 kB / 409.6 MB, free: 26.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003349/0.231, allocations: 371.2 kB / 409.9 MB, free: 25.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.2312, allocations: 134.5 kB / 410.1 MB, free: 25.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.643e-05/0.2313, allocations: 55.42 kB / 410.1 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.2313, allocations: 4 kB / 410.1 MB, free: 25.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000121/0.2314, allocations: 83.31 kB / 410.2 MB, free: 25.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.2315, allocations: 4 kB / 410.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002994/0.2318, allocations: 149.4 kB / 410.4 MB, free: 25.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.2318, allocations: 162.2 kB / 410.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.232, allocations: 272.9 kB / 410.8 MB, free: 24.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.232, allocations: 29.7 kB / 410.8 MB, free: 24.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.2321, allocations: 124.7 kB / 410.9 MB, free: 24.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.2321, allocations: 15.81 kB / 410.9 MB, free: 24.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-06/0.2321, allocations: 3.938 kB / 410.9 MB, free: 24.63 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.615e-05/0.2322, allocations: 338.8 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.218e-05/0.2322, allocations: 19.98 kB / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.351e-05/0.2323, allocations: 79.72 kB / 411.4 MB, free: 24.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.2324, allocations: 93.88 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2324, allocations: 4.031 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001604/0.2326, allocations: 125.4 kB / 411.6 MB, free: 23.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.2326, allocations: 8 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2326, allocations: 0 / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.2326, allocations: 4 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.513e-05/0.2327, allocations: 19.92 kB / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.2327, allocations: 0 / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.488e-05/0.2328, allocations: 24.03 kB / 411.6 MB, free: 23.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.2328, allocations: 4 kB / 411.7 MB, free: 23.86 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,sample1.u,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 7.955e-05/0.2329, allocations: 149.6 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.849e-05/0.2329, allocations: 73.44 kB / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.233, allocations: 25.7 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.233, allocations: 4 kB / 411.9 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.233, allocations: 0 / 411.9 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.233, allocations: 12.03 kB / 411.9 MB, free: 23.58 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.2331, allocations: 225.5 kB / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2331, allocations: 4.312 kB / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.456e-05/0.2332, allocations: 8 kB / 412.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2332, allocations: 3.938 kB / 412.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.2332, allocations: 8 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2332, allocations: 3.984 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2332, allocations: 0 / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001773/0.2334, allocations: 179.3 kB / 412.3 MB, free: 23.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.655e-05/0.2335, allocations: 112.8 kB / 412.4 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.2335, allocations: 8 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.97e-05/0.2336, allocations: 7.984 kB / 412.5 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.262e-05/0.2336, allocations: 4 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.2336, allocations: 7.938 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001264/0.2337, allocations: 200.5 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2338, allocations: 4 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002118/0.234, allocations: 27.98 kB / 412.7 MB, free: 22.7 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,sample1.u,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.0007703/0.2347, allocations: 491.7 kB / 413.2 MB, free: 22.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001737/0.2349, allocations: 76.22 kB / 413.3 MB, free: 22.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2349, allocations: 4.062 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.73e-05/0.235, allocations: 31.92 kB / 413.3 MB, free: 22.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.2354, allocations: 68.42 kB / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004171/0.2358, allocations: 377 kB / 413.7 MB, free: 21.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.2359, allocations: 0.7401 MB / 414.5 MB, free: 21 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.797e-05/0.236, allocations: 21.53 kB / 414.5 MB, free: 20.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.325e-05/0.2361, allocations: 19.44 kB / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of SimCode: time 1.9e-07/0.2361, allocations: 0 / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of Templates: time 0.004397/0.2405, allocations: 2.501 MB / 417 MB, free: 18.48 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches