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.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 184.7 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.269/1.269, allocations: 225.7 MB / 243.2 MB, free: 8.492 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.000691/0.0006912, allocations: 93.39 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.000293, allocations: 11.94 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2102, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.002135/0.2124, allocations: 1.654 MB / 406.2 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.2138, allocations: 1.242 MB / 407.5 MB, free: 28.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.2139, allocations: 7.938 kB / 407.5 MB, free: 28.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000544/0.2145, allocations: 147.1 kB / 407.6 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002348/0.2147, allocations: 99.7 kB / 407.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005825/0.2153, allocations: 219.5 kB / 407.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.2155, allocations: 220.2 kB / 408.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.2157, allocations: 42.92 kB / 408.2 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.225e-05/0.2158, allocations: 79.56 kB / 408.3 MB, free: 27.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.744e-05/0.2159, allocations: 76.19 kB / 408.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.2159, allocations: 4 kB / 408.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.216, allocations: 52.56 kB / 408.4 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.037e-05/0.2161, allocations: 47.77 kB / 408.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.239e-05/0.2162, allocations: 97.78 kB / 408.5 MB, free: 27.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.2164, allocations: 243 kB / 408.8 MB, free: 27.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2164, allocations: 0 / 408.8 MB, free: 27.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2164, allocations: 3.938 kB / 408.8 MB, free: 27.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2164, allocations: 0 / 408.8 MB, free: 27.04 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005788/0.217, allocations: 0.5062 MB / 409.3 MB, free: 26.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.2171, allocations: 8.031 kB / 409.3 MB, free: 26.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.2171, allocations: 32.56 kB / 409.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.2174, allocations: 270.8 kB / 409.6 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.2174, allocations: 12.36 kB / 409.6 MB, free: 26.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.297e-05/0.2174, allocations: 19.84 kB / 409.6 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004298/0.2179, allocations: 304.8 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.2179, allocations: 3.984 kB / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.2179, allocations: 0 / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.2179, allocations: 8 kB / 409.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001245/0.2181, allocations: 59.97 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003828/0.2185, allocations: 394.2 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002415/0.2187, allocations: 171.8 kB / 410.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.2188, allocations: 86.67 kB / 410.6 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.2189, allocations: 4 kB / 410.6 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001336/0.219, allocations: 79.28 kB / 410.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.219, allocations: 0 / 410.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004233/0.2194, allocations: 221.4 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.2195, allocations: 144.4 kB / 411.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.2197, allocations: 265 kB / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.2197, allocations: 33.7 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.2198, allocations: 124.5 kB / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/0.2198, allocations: 27.7 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.68e-06/0.2198, allocations: 0 / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.309e-05/0.2199, allocations: 346.8 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.733e-05/0.22, allocations: 36.83 kB / 411.9 MB, free: 23.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.2201, allocations: 165.3 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.2202, allocations: 203.2 kB / 412.2 MB, free: 23.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2202, allocations: 4 kB / 412.2 MB, free: 23.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002597/0.2205, allocations: 224.9 kB / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2205, allocations: 4 kB / 412.5 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2205, allocations: 7.984 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.2206, allocations: 8 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.425e-05/0.2207, allocations: 19.94 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.2207, allocations: 12.45 kB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.83e-05/0.2208, allocations: 23.88 kB / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.2208, allocations: 12 kB / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001089/0.2209, allocations: 172.7 kB / 412.7 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.2211, allocations: 129.2 kB / 412.8 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.2211, allocations: 29.7 kB / 412.9 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2211, allocations: 0 / 412.9 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2211, allocations: 4 kB / 412.9 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.2211, allocations: 7.938 kB / 412.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.2213, allocations: 245.5 kB / 413.1 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2213, allocations: 4 kB / 413.1 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.499e-05/0.2213, allocations: 7.938 kB / 413.1 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.2213, allocations: 7.984 kB / 413.1 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.2214, allocations: 4 kB / 413.2 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.2214, allocations: 4 kB / 413.2 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2214, allocations: 0 / 413.2 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.2216, allocations: 231.5 kB / 413.4 MB, free: 21.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.105e-05/0.2217, allocations: 124.7 kB / 413.5 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.2217, allocations: 4 kB / 413.5 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.472e-05/0.2218, allocations: 4 kB / 413.5 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.2219, allocations: 11.98 kB / 413.5 MB, free: 21.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.2219, allocations: 8 kB / 413.5 MB, free: 21.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001298/0.222, allocations: 192.5 kB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.222, allocations: 4 kB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002542/0.2223, allocations: 43.94 kB / 413.8 MB, free: 21.55 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.0008659/0.2232, allocations: 495.8 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.2234, allocations: 144.8 kB / 414.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2234, allocations: 3.938 kB / 414.4 MB, free: 21.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.73e-05/0.2235, allocations: 23.98 kB / 414.4 MB, free: 21.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000415/0.2239, allocations: 111.3 kB / 414.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005136/0.2244, allocations: 448.6 kB / 415 MB, free: 20.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.2246, allocations: 0.756 MB / 415.7 MB, free: 19.67 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.154e-05/0.2247, allocations: 30.17 kB / 415.8 MB, free: 19.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.478e-05/0.2247, allocations: 31.42 kB / 415.8 MB, free: 19.61 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2247, allocations: 0 / 415.8 MB, free: 19.61 MB / 298.7 MB Notification: Performance of Templates: time 0.005263/0.23, allocations: 2.819 MB / 418.6 MB, free: 16.81 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches