Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001409/0.00141, allocations: 112.2 kB / 17.06 MB, free: 5.82 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.001278/0.001279, allocations: 195.9 kB / 18 MB, free: 4.965 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.39/1.39, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 43.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2616, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003538/0.2652, allocations: 1.956 MB / 402.2 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.2673, allocations: 1.2 MB / 403.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.2674, allocations: 7.938 kB / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.2678, allocations: 67.67 kB / 403.5 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002756/0.2681, allocations: 95.53 kB / 403.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009118/0.269, allocations: 302.2 kB / 403.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003045/0.2693, allocations: 207.4 kB / 404.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.2695, allocations: 45.66 kB / 404.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.2696, allocations: 99.5 kB / 404.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.2698, allocations: 103.6 kB / 404.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.051e-05/0.2698, allocations: 12 kB / 404.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.27, allocations: 71.91 kB / 404.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.2701, allocations: 75.73 kB / 404.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.2703, allocations: 95.36 kB / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000455/0.2707, allocations: 289.8 kB / 404.8 MB, free: 4.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.2707, allocations: 4 kB / 404.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2707, allocations: 0 / 404.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.2708, allocations: 4 kB / 404.8 MB, free: 4.203 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.0009636/0.2717, allocations: 0.5892 MB / 405.4 MB, free: 3.559 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.2718, allocations: 12.03 kB / 405.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.257e-05/0.2718, allocations: 46.73 kB / 405.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.456e-05/0.2719, allocations: 28.75 kB / 405.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.2723, allocations: 315.7 kB / 405.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.2723, allocations: 12.38 kB / 405.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.53e-05/0.2724, allocations: 19.92 kB / 405.8 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000609/0.273, allocations: 319.5 kB / 406.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.273, allocations: 0 / 406.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.273, allocations: 7.984 kB / 406.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.2731, allocations: 7.984 kB / 406.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.2732, allocations: 67.91 kB / 406.2 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005935/0.2738, allocations: 418.2 kB / 406.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000385/0.2742, allocations: 196 kB / 406.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.2744, allocations: 98.53 kB / 406.9 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.2745, allocations: 4 kB / 406.9 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001793/0.2746, allocations: 79.31 kB / 407 MB, free: 1.789 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.683e-06/0.2747, allocations: 3.938 kB / 407 MB, free: 1.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005725/0.2752, allocations: 257.5 kB / 407.3 MB, free: 1.527 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.2754, allocations: 170.9 kB / 407.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003718/0.2757, allocations: 350.9 kB / 407.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.2758, allocations: 33.64 kB / 407.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.2759, allocations: 136.6 kB / 408 MB, free: 0.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.2759, allocations: 23.84 kB / 408 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.751e-05/0.276, allocations: 53.94 kB / 408 MB, free: 0.707 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2762, allocations: 338.8 kB / 408.4 MB, free: 376 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.898e-05/0.2763, allocations: 44.44 kB / 408.4 MB, free: 332 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.2765, allocations: 195.6 kB / 408.6 MB, free: 72 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002977/0.2768, allocations: 207.2 kB / 408.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.2768, allocations: 4 kB / 408.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003862/0.2772, allocations: 233.1 kB / 409 MB, free: 15.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.2772, allocations: 7.984 kB / 409 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.2773, allocations: 4 kB / 409 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.2773, allocations: 8 kB / 409 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.2774, allocations: 44.39 kB / 409.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.2775, allocations: 11.98 kB / 409.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.2776, allocations: 19.89 kB / 409.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.2776, allocations: 15.98 kB / 409.1 MB, free: 15.46 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.0001827/0.2778, allocations: 176.2 kB / 409.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000212/0.278, allocations: 141.4 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.385e-05/0.2781, allocations: 37.73 kB / 409.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.2781, allocations: 7.938 kB / 409.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.2781, allocations: 8 kB / 409.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2781, allocations: 0 / 409.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.2784, allocations: 265.5 kB / 409.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2784, allocations: 0 / 409.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.2785, allocations: 23.98 kB / 409.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.2785, allocations: 4 kB / 409.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.2786, allocations: 4 kB / 409.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.2786, allocations: 15.81 kB / 409.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2786, allocations: 0 / 409.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003929/0.279, allocations: 238.6 kB / 410 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.2791, allocations: 136.8 kB / 410.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.183e-05/0.2792, allocations: 8 kB / 410.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.256e-05/0.2793, allocations: 8 kB / 410.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.98e-05/0.2793, allocations: 16.02 kB / 410.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.2793, allocations: 11.94 kB / 410.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002459/0.2796, allocations: 249.9 kB / 410.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.184e-06/0.2796, allocations: 4 kB / 410.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.2799, allocations: 51.88 kB / 410.5 MB, free: 13.98 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.002274/0.2822, allocations: 1.187 MB / 411.7 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003713/0.2826, allocations: 151.7 kB / 411.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2826, allocations: 1.062 kB / 411.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.189e-05/0.2827, allocations: 31.98 kB / 411.9 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005535/0.2833, allocations: 128 kB / 412 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.2866, allocations: 2.688 MB / 414.7 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.2871, allocations: 0.7675 MB / 415.5 MB, free: 8.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.2872, allocations: 42.75 kB / 415.5 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.2874, allocations: 79.41 kB / 415.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2874, allocations: 3.938 kB / 415.6 MB, free: 8.805 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.3165, allocations: 6.336 MB / 421.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/8.44, allocations: 15.2 kB / 421.9 MB, free: 2.605 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches