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.001554/0.001553, allocations: 113 kB / 17.07 MB, free: 6.008 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.001589/0.001589, allocations: 189.4 kB / 18 MB, free: 5.09 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.361/1.361, allocations: 222.9 MB / 241.7 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 43.92 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2591, allocations: 49.44 MB / 400.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003678/0.2628, allocations: 1.982 MB / 402.2 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001952/0.2648, allocations: 1.11 MB / 403.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.2649, allocations: 7.938 kB / 403.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005913/0.2656, allocations: 155.5 kB / 403.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000309/0.2659, allocations: 115.5 kB / 403.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007201/0.2666, allocations: 248.6 kB / 403.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003034/0.2669, allocations: 223.4 kB / 404.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.2671, allocations: 48.27 kB / 404.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.2672, allocations: 95.61 kB / 404.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.2674, allocations: 87.61 kB / 404.3 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.697e-05/0.2674, allocations: 19.94 kB / 404.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.2676, allocations: 51.97 kB / 404.4 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.068e-05/0.2677, allocations: 59.77 kB / 404.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.2678, allocations: 83.47 kB / 404.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004071/0.2682, allocations: 262 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2682, allocations: 0 / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2682, allocations: 0 / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.2682, allocations: 0 / 404.7 MB, free: 4.34 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.0009021/0.2691, allocations: 0.5543 MB / 405.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.2692, allocations: 16.03 kB / 405.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.912e-05/0.2692, allocations: 46.73 kB / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.197e-05/0.2693, allocations: 24.8 kB / 405.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.2697, allocations: 286.9 kB / 405.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.2697, allocations: 8.375 kB / 405.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.927e-05/0.2697, allocations: 15.94 kB / 405.7 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005523/0.2703, allocations: 302.7 kB / 406 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/0.2703, allocations: 0 / 406 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.2704, allocations: 4 kB / 406 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.2704, allocations: 7.938 kB / 406 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.2705, allocations: 59.91 kB / 406.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005385/0.2711, allocations: 394.2 kB / 406.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003419/0.2714, allocations: 172 kB / 406.6 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.2716, allocations: 78.55 kB / 406.7 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.712e-05/0.2716, allocations: 15.98 kB / 406.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001714/0.2718, allocations: 79.31 kB / 406.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.863e-06/0.2718, allocations: 0 / 406.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005161/0.2724, allocations: 229.4 kB / 407 MB, free: 1.848 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.2725, allocations: 148.8 kB / 407.2 MB, free: 1.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/0.2728, allocations: 276.9 kB / 407.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.2728, allocations: 33.7 kB / 407.5 MB, free: 1.352 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.914e-05/0.2729, allocations: 116.7 kB / 407.6 MB, free: 1.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/0.273, allocations: 27.78 kB / 407.6 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-05/0.273, allocations: 57.88 kB / 407.7 MB, free: 1.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2732, allocations: 334.8 kB / 408 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.964e-05/0.2733, allocations: 40.44 kB / 408 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.2735, allocations: 166.7 kB / 408.2 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.2737, allocations: 215.2 kB / 408.4 MB, free: 288 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2738, allocations: 0 / 408.4 MB, free: 288 kB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003534/0.2741, allocations: 221.5 kB / 408.6 MB, free: 60 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.2741, allocations: 8 kB / 408.6 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2742, allocations: 4 kB / 408.6 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.2742, allocations: 8 kB / 408.6 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.437e-05/0.2743, allocations: 19.92 kB / 408.6 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.2743, allocations: 15.92 kB / 408.7 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.2744, allocations: 19.89 kB / 408.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.2745, allocations: 8 kB / 408.7 MB, free: 15.98 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.0001633/0.2746, allocations: 168.1 kB / 408.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.2748, allocations: 133.8 kB / 409 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.682e-05/0.2749, allocations: 29.7 kB / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2749, allocations: 0 / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.2749, allocations: 7.938 kB / 409 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2749, allocations: 320 / 409 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.2752, allocations: 249.4 kB / 409.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2752, allocations: 4 kB / 409.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.854e-05/0.2752, allocations: 11.94 kB / 409.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2753, allocations: 4 kB / 409.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.2753, allocations: 11.98 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.2753, allocations: 0 / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2753, allocations: 7.938 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003557/0.2757, allocations: 219.7 kB / 409.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.2758, allocations: 112.9 kB / 409.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.2758, allocations: 8 kB / 409.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.004e-05/0.2759, allocations: 8 kB / 409.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/0.276, allocations: 15.86 kB / 409.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.276, allocations: 15.94 kB / 409.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000202/0.2762, allocations: 192.5 kB / 409.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2762, allocations: 4 kB / 409.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.2765, allocations: 39.94 kB / 409.9 MB, free: 14.65 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.0022/0.2787, allocations: 1.159 MB / 411.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003349/0.2791, allocations: 140.1 kB / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2791, allocations: 0 / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.563e-05/0.2792, allocations: 31.92 kB / 411.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.2797, allocations: 108.3 kB / 411.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.2825, allocations: 2.361 MB / 413.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.2829, allocations: 0.7556 MB / 414.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.06e-05/0.283, allocations: 34.09 kB / 414.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.2831, allocations: 67.41 kB / 414.6 MB, free: 9.895 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2831, allocations: 0 / 414.6 MB, free: 9.895 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.3102, allocations: 5.531 MB / 420.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.115/8.425, allocations: 8.5 kB / 420.1 MB, free: 4.508 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