Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 193.6 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.682/1.682, allocations: 229.5 MB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007996/0.0007997, allocations: 100.3 kB / 299.9 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002694/0.0002693, allocations: 4 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2788, allocations: 51.41 MB / 412 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.002631/0.2815, allocations: 1.681 MB / 413.7 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.2837, allocations: 1.703 MB / 415.4 MB, free: 22.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.2838, allocations: 8.688 kB / 415.4 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007342/0.2846, allocations: 144.9 kB / 415.6 MB, free: 22.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.2849, allocations: 140.1 kB / 415.7 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006153/0.2856, allocations: 222 kB / 415.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00027/0.2859, allocations: 223.4 kB / 416.2 MB, free: 21.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.286, allocations: 49.97 kB / 416.2 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.2862, allocations: 83.56 kB / 416.3 MB, free: 21.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.2863, allocations: 83.55 kB / 416.4 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.64e-05/0.2863, allocations: 7.938 kB / 416.4 MB, free: 21.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.2865, allocations: 47.97 kB / 416.4 MB, free: 21.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-05/0.2866, allocations: 47.77 kB / 416.5 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.2867, allocations: 105.1 kB / 416.6 MB, free: 21.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.287, allocations: 252.6 kB / 416.8 MB, free: 21.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.287, allocations: 0 / 416.8 MB, free: 21.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.287, allocations: 0 / 416.8 MB, free: 21.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.287, allocations: 0 / 416.8 MB, free: 21.02 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.0007957/0.2878, allocations: 0.5041 MB / 417.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.2879, allocations: 12.03 kB / 417.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.735e-05/0.2879, allocations: 28.59 kB / 417.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.2883, allocations: 278.7 kB / 417.6 MB, free: 20.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.2883, allocations: 12.38 kB / 417.6 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.2883, allocations: 20.11 kB / 417.7 MB, free: 20.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005119/0.2888, allocations: 294.4 kB / 418 MB, free: 19.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.2889, allocations: 0 / 418 MB, free: 19.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.2889, allocations: 7.984 kB / 418 MB, free: 19.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.2889, allocations: 7.938 kB / 418 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001344/0.289, allocations: 55.95 kB / 418 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004553/0.2895, allocations: 398.2 kB / 418.4 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.2898, allocations: 168 kB / 418.6 MB, free: 19.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.2899, allocations: 86.55 kB / 418.7 MB, free: 18.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.29, allocations: 8.062 kB / 418.7 MB, free: 18.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001646/0.2901, allocations: 79.31 kB / 418.7 MB, free: 18.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.2902, allocations: 0 / 418.7 MB, free: 18.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004399/0.2906, allocations: 225.4 kB / 419 MB, free: 18.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.073e-05/0.2907, allocations: 144.4 kB / 419.1 MB, free: 18.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/0.291, allocations: 273.4 kB / 419.4 MB, free: 18.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.291, allocations: 33.7 kB / 419.4 MB, free: 18.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.195e-05/0.2911, allocations: 124.6 kB / 419.5 MB, free: 18.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/0.2911, allocations: 35.62 kB / 419.6 MB, free: 17.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.2911, allocations: 15.88 kB / 419.6 MB, free: 17.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.39e-05/0.2912, allocations: 334.8 kB / 419.9 MB, free: 17.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.46e-05/0.2913, allocations: 36.45 kB / 419.9 MB, free: 17.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.2914, allocations: 166.7 kB / 420.1 MB, free: 17.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.2916, allocations: 203.2 kB / 420.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.2916, allocations: 4 kB / 420.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000281/0.2919, allocations: 221.3 kB / 420.5 MB, free: 16.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.2919, allocations: 8 kB / 420.5 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.292, allocations: 4 kB / 420.5 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.292, allocations: 4 kB / 420.5 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.2921, allocations: 23.92 kB / 420.6 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.2921, allocations: 7.938 kB / 420.6 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.2922, allocations: 19.92 kB / 420.6 MB, free: 16.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.2922, allocations: 16 kB / 420.6 MB, free: 16.82 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.0001411/0.2924, allocations: 168.1 kB / 420.8 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.2926, allocations: 121.3 kB / 420.9 MB, free: 16.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.422e-05/0.2926, allocations: 29.7 kB / 420.9 MB, free: 16.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2926, allocations: 4 kB / 420.9 MB, free: 16.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.2926, allocations: 0 / 420.9 MB, free: 16.49 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.2927, allocations: 7.922 kB / 420.9 MB, free: 16.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.2928, allocations: 249.4 kB / 421.2 MB, free: 16.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.2928, allocations: 0 / 421.2 MB, free: 16.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.641e-05/0.2929, allocations: 19.92 kB / 421.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.2929, allocations: 3.984 kB / 421.2 MB, free: 16.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.2929, allocations: 8 kB / 421.2 MB, free: 16.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2929, allocations: 0 / 421.2 MB, free: 16.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2929, allocations: 4 kB / 421.2 MB, free: 16.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002652/0.2932, allocations: 216.8 kB / 421.4 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.344e-05/0.2933, allocations: 132.8 kB / 421.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.676e-05/0.2933, allocations: 4 kB / 421.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.626e-05/0.2934, allocations: 8 kB / 421.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.2935, allocations: 11.92 kB / 421.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.2935, allocations: 12 kB / 421.6 MB, free: 15.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001574/0.2937, allocations: 200.5 kB / 421.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2937, allocations: 96 / 421.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002704/0.2939, allocations: 51.88 kB / 421.8 MB, free: 15.49 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.001061/0.295, allocations: 0.4884 MB / 422.3 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000285/0.2953, allocations: 135.7 kB / 422.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2953, allocations: 1.062 kB / 422.5 MB, free: 14.99 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.034e-05/0.2954, allocations: 23.98 kB / 422.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004821/0.2959, allocations: 116.7 kB / 422.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006669/0.2966, allocations: 460.5 kB / 423 MB, free: 14.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.2968, allocations: 0.7599 MB / 423.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.188e-05/0.2969, allocations: 26.5 kB / 423.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.271e-05/0.297, allocations: 27.42 kB / 423.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.297, allocations: 4 kB / 423.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of Templates: time 0.006234/0.3032, allocations: 2.846 MB / 426.7 MB, free: 10.7 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches