Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001143/0.001144, allocations: 120.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.84 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2782, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004065/0.2823, allocations: 2.01 MB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.2846, allocations: 1.243 MB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002127/0.2848, allocations: 7.938 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007334/0.2856, allocations: 163.4 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005341/0.2861, allocations: 158.9 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007006/0.2868, allocations: 203.4 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003662/0.2872, allocations: 239.3 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.2874, allocations: 48.23 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.2876, allocations: 95.61 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.2878, allocations: 95.55 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.2878, allocations: 16 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.288, allocations: 59.91 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.475e-05/0.2881, allocations: 59.81 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.2882, allocations: 83.42 kB / 413.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004543/0.2887, allocations: 269.9 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2887, allocations: 0 / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2887, allocations: 0 / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.2887, allocations: 0 / 413.5 MB, free: 12.8 MB / 334.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.0009962/0.2897, allocations: 0.566 MB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.2898, allocations: 12.03 kB / 414 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.481e-05/0.2898, allocations: 42.75 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.557e-05/0.2899, allocations: 28.78 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.2904, allocations: 290.9 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.2904, allocations: 8.375 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.2904, allocations: 19.94 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005814/0.291, allocations: 301.5 kB / 414.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.2911, allocations: 3.984 kB / 414.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.2911, allocations: 4 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.2911, allocations: 8 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.2913, allocations: 59.91 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005432/0.2918, allocations: 394.2 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003263/0.2921, allocations: 172 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.2923, allocations: 86.55 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.907e-05/0.2923, allocations: 16.05 kB / 415.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.2925, allocations: 75.33 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 3.376e-06/0.2925, allocations: 0 / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005714/0.2931, allocations: 225.6 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.2933, allocations: 140.6 kB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.2936, allocations: 288.8 kB / 416.2 MB, free: 9.824 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.2936, allocations: 33.7 kB / 416.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.2938, allocations: 120.6 kB / 416.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.997e-05/0.2938, allocations: 31.83 kB / 416.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.01e-05/0.2939, allocations: 53.94 kB / 416.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.294, allocations: 330.8 kB / 416.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.687e-05/0.2941, allocations: 40.45 kB / 416.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.2944, allocations: 174 kB / 416.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.2947, allocations: 199.2 kB / 417.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2947, allocations: 0 / 417.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003822/0.2951, allocations: 221.1 kB / 417.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.2951, allocations: 8 kB / 417.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.2951, allocations: 8.828 kB / 417.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.2951, allocations: 12 kB / 417.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.2952, allocations: 15.94 kB / 417.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/0.2953, allocations: 11.98 kB / 417.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.2954, allocations: 23.83 kB / 417.4 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.2954, allocations: 15.98 kB / 417.4 MB, free: 8.402 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.0001746/0.2956, allocations: 164.2 kB / 417.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/0.2958, allocations: 141.4 kB / 417.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.499e-05/0.2959, allocations: 33.7 kB / 417.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.2959, allocations: 4 kB / 417.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2959, allocations: 0 / 417.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.296, allocations: 3.938 kB / 417.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.2962, allocations: 245.5 kB / 418 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2962, allocations: 0 / 418 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.113e-05/0.2962, allocations: 4 kB / 418 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.2963, allocations: 4 kB / 418 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.2963, allocations: 19.91 kB / 418 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.2963, allocations: 0 / 418 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2963, allocations: 3.938 kB / 418 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003639/0.2967, allocations: 230 kB / 418.3 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.2968, allocations: 120.9 kB / 418.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.2969, allocations: 8 kB / 418.4 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.733e-05/0.2969, allocations: 8.094 kB / 418.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.297, allocations: 11.92 kB / 418.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.297, allocations: 8 kB / 418.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002027/0.2972, allocations: 208.4 kB / 418.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2972, allocations: 0 / 418.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003307/0.2976, allocations: 47.92 kB / 418.7 MB, free: 7.059 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.001672/0.2992, allocations: 1.145 MB / 419.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003375/0.2996, allocations: 136.7 kB / 420 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2996, allocations: 0 / 420 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.901e-05/0.2997, allocations: 28.11 kB / 420 MB, free: 5.859 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005366/0.3003, allocations: 118.6 kB / 420.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002955/0.3032, allocations: 2.405 MB / 422.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.3036, allocations: 0.7598 MB / 423.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.3037, allocations: 34.77 kB / 423.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.3038, allocations: 67.41 kB / 423.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3039, allocations: 3.938 kB / 423.4 MB, free: 2.254 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.3281, allocations: 5.621 MB / 429 MB, free: 12.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.722/8.05, allocations: 3.438 kB / 429 MB, free: 12.76 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches