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.001506/0.001506, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001859/0.001859, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 58.66 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09356/0.09489, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004237/0.09917, allocations: 2.009 MB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.1015, allocations: 1.249 MB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002178/0.1017, allocations: 11.94 kB / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006105/0.1024, allocations: 143.5 kB / 361 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004594/0.1029, allocations: 167.2 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006657/0.1036, allocations: 207.3 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003113/0.1039, allocations: 235.4 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.104, allocations: 56.25 kB / 361.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.1042, allocations: 99.56 kB / 361.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.1043, allocations: 91.55 kB / 361.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.1044, allocations: 12 kB / 361.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.1045, allocations: 63.97 kB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.219e-05/0.1046, allocations: 55.77 kB / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.1048, allocations: 87.41 kB / 362 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003598/0.1051, allocations: 259.4 kB / 362.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1051, allocations: 0 / 362.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1051, allocations: 0 / 362.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1052, allocations: 0 / 362.3 MB, free: 9.258 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.0008322/0.106, allocations: 0.5469 MB / 362.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.106, allocations: 8.031 kB / 362.8 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.37e-05/0.1061, allocations: 50.67 kB / 362.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.873e-05/0.1062, allocations: 32.56 kB / 362.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.1065, allocations: 286.6 kB / 363.2 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.1066, allocations: 8.375 kB / 363.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.217e-05/0.1066, allocations: 15.94 kB / 363.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.1071, allocations: 302.3 kB / 363.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.1072, allocations: 0 / 363.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.1072, allocations: 0 / 363.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.1072, allocations: 4 kB / 363.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.1074, allocations: 67.91 kB / 363.6 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005185/0.1079, allocations: 394.2 kB / 364 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.1082, allocations: 172 kB / 364.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.1084, allocations: 82.55 kB / 364.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.1084, allocations: 7.922 kB / 364.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.1086, allocations: 75.39 kB / 364.3 MB, free: 7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.354e-06/0.1086, allocations: 4 kB / 364.3 MB, free: 6.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005524/0.1092, allocations: 225.3 kB / 364.5 MB, free: 6.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.684e-05/0.1093, allocations: 140.5 kB / 364.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.1096, allocations: 288.8 kB / 365 MB, free: 6.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.1097, allocations: 29.7 kB / 365 MB, free: 6.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.531e-05/0.1097, allocations: 116.7 kB / 365.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.82e-05/0.1098, allocations: 39.58 kB / 365.1 MB, free: 6.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-05/0.1099, allocations: 49.94 kB / 365.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.11, allocations: 338.8 kB / 365.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.226e-05/0.1101, allocations: 40.44 kB / 365.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.1103, allocations: 162.1 kB / 365.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.1106, allocations: 203.2 kB / 365.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/0.1106, allocations: 8 kB / 365.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003693/0.111, allocations: 221 kB / 366.1 MB, free: 4.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.111, allocations: 12.52 kB / 366.1 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.111, allocations: 4 kB / 366.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.111, allocations: 8 kB / 366.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.831e-05/0.1111, allocations: 19.94 kB / 366.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.1112, allocations: 15.92 kB / 366.2 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.1113, allocations: 24.09 kB / 366.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.1113, allocations: 8 kB / 366.2 MB, free: 4.891 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.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.0001671/0.1115, allocations: 169.4 kB / 366.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.1117, allocations: 129.2 kB / 366.5 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.819e-05/0.1118, allocations: 42.09 kB / 366.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.1118, allocations: 0 / 366.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.1118, allocations: 4 kB / 366.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1118, allocations: 3.938 kB / 366.6 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000258/0.1121, allocations: 249.4 kB / 366.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1121, allocations: 0 / 366.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.302e-05/0.1121, allocations: 11.94 kB / 366.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1121, allocations: 4 kB / 366.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.1122, allocations: 3.984 kB / 366.8 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1122, allocations: 4 kB / 366.8 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1122, allocations: 4 kB / 366.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003475/0.1125, allocations: 227.6 kB / 367.1 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1126, allocations: 116.8 kB / 367.2 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/0.1127, allocations: 8 kB / 367.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.854e-05/0.1128, allocations: 4 kB / 367.2 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.1128, allocations: 11.98 kB / 367.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.1129, allocations: 8 kB / 367.2 MB, free: 3.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001993/0.1131, allocations: 208.4 kB / 367.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1131, allocations: 0 / 367.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003217/0.1134, allocations: 51.92 kB / 367.5 MB, free: 3.551 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,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.001704/0.1151, allocations: 1.142 MB / 368.6 MB, free: 2.516 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003325/0.1155, allocations: 148.5 kB / 368.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1155, allocations: 4.25 kB / 368.8 MB, free: 2.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.888e-05/0.1156, allocations: 24 kB / 368.8 MB, free: 2.344 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005007/0.1161, allocations: 129.2 kB / 368.9 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.118, allocations: 1.268 MB / 370.2 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.1183, allocations: 0.7557 MB / 370.9 MB, free: 64 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.1184, allocations: 34.75 kB / 371 MB, free: 28 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1414/0.2598, allocations: 64.91 kB / 371 MB, free: 19.33 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2599, allocations: 0 / 371 MB, free: 19.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.2817, allocations: 5.419 MB / 376.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/8.049, allocations: 7.781 kB / 376.4 MB, free: 18.75 MB / 302.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