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.001409, allocations: 106.2 kB / 16.92 MB, free: 5.773 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.001577/0.001577, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.363/1.363, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009739/0.000974, allocations: 51.58 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08963/0.09062, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003344/0.094, allocations: 1.942 MB / 352.1 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.09587, allocations: 1.2 MB / 353.3 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.096, allocations: 4 kB / 353.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000296/0.09632, allocations: 75.58 kB / 353.4 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002636/0.0966, allocations: 95.53 kB / 353.5 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007893/0.0974, allocations: 300.8 kB / 353.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002601/0.09767, allocations: 211.4 kB / 354 MB, free: 492 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.09781, allocations: 45.67 kB / 354 MB, free: 448 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.09794, allocations: 91.62 kB / 354.1 MB, free: 356 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.09809, allocations: 103.5 kB / 354.2 MB, free: 252 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.378e-05/0.09813, allocations: 12 kB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.09828, allocations: 67.89 kB / 354.3 MB, free: 172 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.798e-05/0.09838, allocations: 63.83 kB / 354.4 MB, free: 108 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.755e-05/0.09848, allocations: 103.3 kB / 354.5 MB, free: 4 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000359/0.09885, allocations: 283.4 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.09886, allocations: 4 kB / 354.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09887, allocations: 0 / 354.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.09888, allocations: 0 / 354.7 MB, free: 15.72 MB / 302.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.0008678/0.09976, allocations: 0.5778 MB / 355.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.0998, allocations: 8.031 kB / 355.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.831e-05/0.09985, allocations: 46.73 kB / 355.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.377e-05/0.09992, allocations: 32.56 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004373/0.1004, allocations: 311.3 kB / 355.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.1004, allocations: 12.38 kB / 355.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.351e-05/0.1004, allocations: 19.94 kB / 355.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005436/0.101, allocations: 329.4 kB / 356.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.629e-06/0.101, allocations: 0 / 356.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.101, allocations: 8 kB / 356.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.101, allocations: 3.984 kB / 356.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.1012, allocations: 67.95 kB / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005231/0.1018, allocations: 426.2 kB / 356.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003606/0.1021, allocations: 195.8 kB / 356.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.1023, allocations: 94.66 kB / 356.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.1023, allocations: 4 kB / 356.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.1025, allocations: 79.38 kB / 356.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.803e-06/0.1025, allocations: 0 / 356.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005869/0.1031, allocations: 253.1 kB / 357.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.1032, allocations: 170.4 kB / 357.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.1036, allocations: 350.8 kB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.1036, allocations: 33.7 kB / 357.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.1038, allocations: 128.7 kB / 357.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.1038, allocations: 31.7 kB / 357.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.541e-05/0.1039, allocations: 53.84 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.104, allocations: 342.8 kB / 358.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.935e-05/0.1041, allocations: 44.44 kB / 358.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.1043, allocations: 180.1 kB / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/0.1046, allocations: 215.2 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1046, allocations: 3.938 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003818/0.105, allocations: 233 kB / 358.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.1051, allocations: 11.19 kB / 358.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1051, allocations: 4 kB / 358.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.1051, allocations: 4 kB / 358.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.1053, allocations: 48.69 kB / 359 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.1053, allocations: 12.19 kB / 359 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.1054, allocations: 27.84 kB / 359 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.1054, allocations: 16 kB / 359 MB, free: 10.99 MB / 302.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.0001778/0.1056, allocations: 179.9 kB / 359.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002136/0.1058, allocations: 133.3 kB / 359.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.475e-05/0.1059, allocations: 29.73 kB / 359.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1059, allocations: 7.938 kB / 359.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.1059, allocations: 0 / 359.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.106, allocations: 11.98 kB / 359.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.1062, allocations: 261.4 kB / 359.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1062, allocations: 0 / 359.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.1063, allocations: 35.91 kB / 359.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1063, allocations: 0 / 359.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.1064, allocations: 8 kB / 359.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1064, allocations: 3.938 kB / 359.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1064, allocations: 4.047 kB / 359.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003935/0.1068, allocations: 249.2 kB / 359.9 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.1069, allocations: 128.6 kB / 360.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.59e-05/0.107, allocations: 11.98 kB / 360.1 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.435e-05/0.1071, allocations: 4 kB / 360.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.803e-05/0.1071, allocations: 15.92 kB / 360.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.1071, allocations: 4 kB / 360.1 MB, free: 9.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002392/0.1074, allocations: 253.9 kB / 360.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1074, allocations: 4 kB / 360.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003265/0.1077, allocations: 48 kB / 360.4 MB, free: 9.52 MB / 302.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.001753/0.1095, allocations: 1.184 MB / 361.6 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003785/0.1099, allocations: 163.6 kB / 361.7 MB, free: 8.297 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1099, allocations: 0 / 361.7 MB, free: 8.297 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.729e-05/0.11, allocations: 29.05 kB / 361.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005545/0.1106, allocations: 128.5 kB / 361.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.1129, allocations: 1.481 MB / 363.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003684/0.1133, allocations: 0.7678 MB / 364.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.1134, allocations: 38.5 kB / 364.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.1135, allocations: 79.41 kB / 364.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of SimCode: time 1.623e-06/0.1135, allocations: 0 / 364.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1781/0.2916, allocations: 6.123 MB / 370.4 MB, free: 25.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.694/7.986, allocations: 3.547 kB / 370.4 MB, free: 25.7 MB / 302.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