Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.0012/0.0012, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 67.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2693, allocations: 50.55 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.005016/0.2744, allocations: 1.972 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003288/0.2777, allocations: 1.344 MB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.278, allocations: 4 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004114/0.2784, allocations: 67.59 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005609/0.279, allocations: 143.4 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.2802, allocations: 263.2 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004404/0.2806, allocations: 223.4 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.2808, allocations: 52.28 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.2811, allocations: 95.61 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.2813, allocations: 107.5 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/0.2814, allocations: 12 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002526/0.2816, allocations: 75.89 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.2818, allocations: 67.77 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.282, allocations: 103.3 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005964/0.2826, allocations: 301.7 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2826, allocations: 0 / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2826, allocations: 0 / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.2826, allocations: 0 / 413.6 MB, free: 12.7 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.001306/0.2839, allocations: 0.597 MB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.284, allocations: 8.031 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.883e-05/0.2841, allocations: 46.73 kB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.2842, allocations: 36.75 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006138/0.2848, allocations: 319.6 kB / 414.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/0.2849, allocations: 20.36 kB / 414.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.2849, allocations: 15.94 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008269/0.2857, allocations: 315.3 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.2858, allocations: 7.938 kB / 414.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.775e-05/0.2858, allocations: 8 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.2858, allocations: 7.938 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000258/0.2861, allocations: 67.95 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008386/0.287, allocations: 406.3 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005341/0.2875, allocations: 200.1 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.2877, allocations: 90.55 kB / 415.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.889e-05/0.2878, allocations: 11.92 kB / 415.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002218/0.288, allocations: 79.39 kB / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 3.076e-06/0.2881, allocations: 0 / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008165/0.2889, allocations: 261.3 kB / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.289, allocations: 166.2 kB / 416.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005741/0.2896, allocations: 358.9 kB / 416.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.2897, allocations: 33.7 kB / 416.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.2898, allocations: 136.8 kB / 416.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.55e-05/0.2899, allocations: 35.83 kB / 416.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.29, allocations: 53.89 kB / 416.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.2902, allocations: 338.8 kB / 417.1 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.2904, allocations: 44.38 kB / 417.2 MB, free: 8.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/0.2907, allocations: 186.9 kB / 417.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004095/0.2911, allocations: 219.2 kB / 417.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2911, allocations: 0 / 417.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000601/0.2917, allocations: 229.6 kB / 417.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.2918, allocations: 19.42 kB / 417.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.2918, allocations: 4 kB / 417.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.2918, allocations: 4 kB / 417.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002352/0.2921, allocations: 39.86 kB / 417.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/0.2921, allocations: 15.88 kB / 417.9 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.2923, allocations: 19.89 kB / 417.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-05/0.2923, allocations: 15.98 kB / 417.9 MB, free: 7.934 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.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],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.0002426/0.2926, allocations: 180 kB / 418.1 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003159/0.2929, allocations: 141.5 kB / 418.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.293, allocations: 34.08 kB / 418.2 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.2931, allocations: 7.938 kB / 418.2 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.2931, allocations: 3.938 kB / 418.3 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.2931, allocations: 8 kB / 418.3 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003355/0.2934, allocations: 269.4 kB / 418.5 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/0.2935, allocations: 4 kB / 418.5 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002034/0.2937, allocations: 31.92 kB / 418.6 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.136e-06/0.2937, allocations: 4 kB / 418.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.2937, allocations: 7.984 kB / 418.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.695e-06/0.2937, allocations: 7.938 kB / 418.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2937, allocations: 0 / 418.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005916/0.2943, allocations: 245.8 kB / 418.8 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.2945, allocations: 128.8 kB / 418.9 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.804e-05/0.2946, allocations: 8 kB / 418.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.765e-05/0.2947, allocations: 12 kB / 419 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.2948, allocations: 11.92 kB / 419 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.2948, allocations: 15.98 kB / 419 MB, free: 6.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002595/0.2951, allocations: 249.9 kB / 419.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2951, allocations: 0 / 419.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003387/0.2954, allocations: 51.98 kB / 419.3 MB, free: 6.434 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,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.002202/0.2976, allocations: 1.18 MB / 420.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005116/0.2981, allocations: 156.5 kB / 420.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2982, allocations: 0 / 420.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.2983, allocations: 39.91 kB / 420.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007486/0.2991, allocations: 119 kB / 420.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004483/0.3036, allocations: 2.72 MB / 423.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.304, allocations: 0.7789 MB / 424.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001582/0.3042, allocations: 34.27 kB / 424.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.3044, allocations: 79.41 kB / 424.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3044, allocations: 0 / 424.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03286/0.3373, allocations: 6.428 MB / 430.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.889/8.226, allocations: 3.5 kB / 430.8 MB, free: 10.92 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches