Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 43.92 kB / 350.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2713, allocations: 49.44 MB / 400.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003515/0.2749, allocations: 1.988 MB / 402.2 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.2767, allocations: 1.103 MB / 403.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.2769, allocations: 7.938 kB / 403.3 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000569/0.2775, allocations: 155.2 kB / 403.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.2778, allocations: 115.5 kB / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006312/0.2784, allocations: 242.5 kB / 403.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000265/0.2787, allocations: 231.4 kB / 404.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.2788, allocations: 48.28 kB / 404.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.279, allocations: 95.61 kB / 404.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2792, allocations: 91.55 kB / 404.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.2792, allocations: 12 kB / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.2793, allocations: 67.89 kB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.663e-05/0.2794, allocations: 51.83 kB / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.125e-05/0.2795, allocations: 87.47 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003439/0.2799, allocations: 262 kB / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2799, allocations: 0 / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.614e-06/0.2799, allocations: 0 / 404.8 MB, free: 4.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.2799, allocations: 0 / 404.8 MB, free: 4.246 MB / 318.1 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.0007451/0.2807, allocations: 0.5544 MB / 405.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2807, allocations: 12.03 kB / 405.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.309e-05/0.2808, allocations: 46.73 kB / 405.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.4e-05/0.2808, allocations: 24.8 kB / 405.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003373/0.2812, allocations: 286.9 kB / 405.7 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.2812, allocations: 8.375 kB / 405.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.57e-05/0.2812, allocations: 15.94 kB / 405.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005286/0.2817, allocations: 303 kB / 406 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2818, allocations: 0 / 406 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.2818, allocations: 0 / 406 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.2818, allocations: 8 kB / 406 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.2819, allocations: 63.91 kB / 406.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004773/0.2824, allocations: 390.2 kB / 406.4 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.2827, allocations: 172.1 kB / 406.6 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.2829, allocations: 82.55 kB / 406.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.2829, allocations: 7.984 kB / 406.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001425/0.2831, allocations: 83.33 kB / 406.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.2831, allocations: 0 / 406.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004742/0.2836, allocations: 225.6 kB / 407 MB, free: 1.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.2837, allocations: 144.9 kB / 407.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.284, allocations: 276.9 kB / 407.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.284, allocations: 33.7 kB / 407.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.723e-05/0.2841, allocations: 124.7 kB / 407.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.2842, allocations: 31.78 kB / 407.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.42e-05/0.2842, allocations: 53.89 kB / 407.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.2843, allocations: 334.8 kB / 408 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.071e-05/0.2844, allocations: 36.45 kB / 408 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.2846, allocations: 174.7 kB / 408.2 MB, free: 464 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.2848, allocations: 203.2 kB / 408.4 MB, free: 204 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2849, allocations: 4 kB / 408.4 MB, free: 200 kB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003419/0.2852, allocations: 221.1 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2852, allocations: 4.531 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.2852, allocations: 4 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.2853, allocations: 12 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.6e-05/0.2854, allocations: 23.91 kB / 408.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.2854, allocations: 11.98 kB / 408.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.2855, allocations: 23.88 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.2855, allocations: 12 kB / 408.7 MB, free: 15.88 MB / 334.1 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 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,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.0001453/0.2857, allocations: 163.9 kB / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.2858, allocations: 129.5 kB / 409 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.762e-05/0.2859, allocations: 29.72 kB / 409 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.2859, allocations: 0 / 409 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.2859, allocations: 4.312 kB / 409 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.286, allocations: 7.922 kB / 409 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.2862, allocations: 245.4 kB / 409.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.2862, allocations: 8 kB / 409.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.962e-05/0.2862, allocations: 11.98 kB / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.2862, allocations: 0 / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.2863, allocations: 7.938 kB / 409.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.2863, allocations: 7.938 kB / 409.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2863, allocations: 4 kB / 409.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003305/0.2866, allocations: 224.2 kB / 409.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.2867, allocations: 117 kB / 409.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.2868, allocations: 7.938 kB / 409.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.954e-05/0.2868, allocations: 7.984 kB / 409.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.762e-05/0.2869, allocations: 12 kB / 409.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.2869, allocations: 8 kB / 409.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002121/0.2871, allocations: 200.4 kB / 409.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2871, allocations: 0 / 409.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002882/0.2874, allocations: 47.92 kB / 409.9 MB, free: 14.56 MB / 334.1 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.001533/0.289, allocations: 1.146 MB / 411.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003024/0.2893, allocations: 140.6 kB / 411.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2893, allocations: 256 / 411.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.722e-05/0.2894, allocations: 27.98 kB / 411.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000474/0.2899, allocations: 121.1 kB / 411.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.2924, allocations: 2.364 MB / 413.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.2928, allocations: 0.7634 MB / 414.5 MB, free: 9.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.792e-05/0.2929, allocations: 22.17 kB / 414.5 MB, free: 9.887 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.293, allocations: 67.41 kB / 414.6 MB, free: 9.82 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.293, allocations: 0 / 414.6 MB, free: 9.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02387/0.3169, allocations: 5.537 MB / 420.1 MB, free: 4.434 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.127, allocations: 8.5 kB / 420.1 MB, free: 4.426 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches