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.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.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.0009969/0.000997, allocations: 180.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.35/1.35, allocations: 225.7 MB / 243.2 MB, free: 8.52 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.0008058/0.0008058, allocations: 98.72 kB / 294.4 MB, free: 9.516 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003276/0.0003277, allocations: 11.94 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2328, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.001739/0.2346, allocations: 1.623 MB / 406.2 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.236, allocations: 1.485 MB / 407.7 MB, free: 28.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.675e-05/0.2361, allocations: 7.938 kB / 407.7 MB, free: 28.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002615/0.2364, allocations: 57.58 kB / 407.7 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001841/0.2366, allocations: 91.64 kB / 407.8 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006446/0.2372, allocations: 266.3 kB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.2374, allocations: 195.5 kB / 408.3 MB, free: 27.53 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.2375, allocations: 42.22 kB / 408.3 MB, free: 27.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.525e-05/0.2376, allocations: 87.56 kB / 408.4 MB, free: 27.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.2377, allocations: 91.59 kB / 408.5 MB, free: 27.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.2377, allocations: 4 kB / 408.5 MB, free: 27.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.2379, allocations: 55.91 kB / 408.6 MB, free: 27.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.691e-05/0.2379, allocations: 63.69 kB / 408.6 MB, free: 27.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.138e-05/0.238, allocations: 116 kB / 408.7 MB, free: 27.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002279/0.2383, allocations: 264.6 kB / 409 MB, free: 26.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.2383, allocations: 4 kB / 409 MB, free: 26.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2383, allocations: 0 / 409 MB, free: 26.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.2383, allocations: 0 / 409 MB, free: 26.82 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.0006026/0.2389, allocations: 0.5312 MB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.2389, allocations: 8.031 kB / 409.5 MB, free: 26.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.946e-05/0.239, allocations: 36.55 kB / 409.6 MB, free: 26.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002626/0.2393, allocations: 307.5 kB / 409.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.2393, allocations: 16.36 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.2393, allocations: 20.06 kB / 409.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004415/0.2398, allocations: 329 kB / 410.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.2398, allocations: 0 / 410.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.2398, allocations: 8 kB / 410.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.2398, allocations: 4 kB / 410.2 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001417/0.24, allocations: 67.91 kB / 410.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003937/0.2404, allocations: 410.4 kB / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.2407, allocations: 192 kB / 410.9 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.2408, allocations: 98.45 kB / 411 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.2408, allocations: 4 kB / 411 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001326/0.241, allocations: 79.38 kB / 411.1 MB, free: 24.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.241, allocations: 4 kB / 411.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004205/0.2414, allocations: 241.2 kB / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.2415, allocations: 174.3 kB / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002375/0.2417, allocations: 342.9 kB / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.2417, allocations: 34.08 kB / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.2418, allocations: 136.7 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.2418, allocations: 31.64 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-06/0.2418, allocations: 4 kB / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.477e-05/0.2419, allocations: 346.7 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.807e-05/0.242, allocations: 40.44 kB / 412.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.2421, allocations: 182.9 kB / 412.6 MB, free: 22.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001895/0.2423, allocations: 207.2 kB / 412.8 MB, free: 22.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2423, allocations: 4 kB / 412.8 MB, free: 22.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003084/0.2426, allocations: 233.3 kB / 413 MB, free: 22.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.2427, allocations: 12.06 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2427, allocations: 4 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.2427, allocations: 4 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.2428, allocations: 51.78 kB / 413.1 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.2428, allocations: 8.25 kB / 413.1 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.2429, allocations: 19.84 kB / 413.1 MB, free: 22.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.243, allocations: 20 kB / 413.1 MB, free: 22.26 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.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],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.0001235/0.2431, allocations: 180.5 kB / 413.3 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.2433, allocations: 129.3 kB / 413.4 MB, free: 21.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-05/0.2433, allocations: 33.73 kB / 413.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2433, allocations: 4 kB / 413.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2433, allocations: 3.938 kB / 413.5 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.2434, allocations: 3.984 kB / 413.5 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.2435, allocations: 269.4 kB / 413.7 MB, free: 21.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2435, allocations: 0 / 413.7 MB, free: 21.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.2437, allocations: 35.91 kB / 413.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2437, allocations: 0 / 413.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.2437, allocations: 8 kB / 413.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2437, allocations: 4 kB / 413.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2437, allocations: 3.938 kB / 413.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.244, allocations: 239.9 kB / 414 MB, free: 21.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.849e-05/0.2441, allocations: 132.7 kB / 414.2 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.2441, allocations: 4 kB / 414.2 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.2442, allocations: 12 kB / 414.2 MB, free: 21.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.384e-05/0.2443, allocations: 11.92 kB / 414.2 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.2443, allocations: 12 kB / 414.2 MB, free: 21.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001916/0.2445, allocations: 245.9 kB / 414.4 MB, free: 20.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2445, allocations: 0 / 414.4 MB, free: 20.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000278/0.2448, allocations: 48.03 kB / 414.5 MB, free: 20.8 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.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.0009464/0.2458, allocations: 0.4977 MB / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002701/0.246, allocations: 143.8 kB / 415.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2461, allocations: 0 / 415.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.682e-05/0.2461, allocations: 27.98 kB / 415.1 MB, free: 20.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004807/0.2466, allocations: 121.9 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005797/0.2472, allocations: 0.5168 MB / 415.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.2474, allocations: 0.7717 MB / 416.6 MB, free: 18.8 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.05e-05/0.2475, allocations: 34.5 kB / 416.6 MB, free: 18.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.044e-05/0.2475, allocations: 27.42 kB / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2475, allocations: 0 / 416.6 MB, free: 18.73 MB / 298.7 MB Notification: Performance of Templates: time 0.006572/0.2541, allocations: 3.304 MB / 419.9 MB, free: 15.45 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches