Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001162/0.001162, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 55.31 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09333/0.09457, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003785/0.0984, allocations: 1.9 MB / 359.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.1005, allocations: 1.192 MB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.1007, allocations: 0 / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005804/0.1013, allocations: 147.5 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004116/0.1017, allocations: 159.4 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004993/0.1022, allocations: 175 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.1025, allocations: 195.4 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.1026, allocations: 29.55 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.1028, allocations: 79.64 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.1029, allocations: 71.69 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.1029, allocations: 8 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.1031, allocations: 47.97 kB / 361.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.932e-05/0.1031, allocations: 51.78 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.029e-05/0.1032, allocations: 75.48 kB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.1035, allocations: 207.6 kB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1035, allocations: 0 / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1035, allocations: 4 kB / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.493e-06/0.1036, allocations: 0 / 361.9 MB, free: 9.648 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007135/0.1043, allocations: 0.5001 MB / 362.4 MB, free: 9.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1043, allocations: 8.031 kB / 362.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.629e-05/0.1044, allocations: 46.72 kB / 362.5 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.651e-05/0.1044, allocations: 28.59 kB / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.1048, allocations: 266.8 kB / 362.7 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.1048, allocations: 8.375 kB / 362.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.1048, allocations: 7.938 kB / 362.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003204/0.1051, allocations: 158.7 kB / 362.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1051, allocations: 0 / 362.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.1052, allocations: 0 / 362.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.1052, allocations: 0 / 362.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.1053, allocations: 39.92 kB / 362.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004539/0.1057, allocations: 358.4 kB / 363.3 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002151/0.106, allocations: 111.8 kB / 363.4 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.383e-05/0.1061, allocations: 42.56 kB / 363.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.1061, allocations: 8 kB / 363.5 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001579/0.1063, allocations: 71.39 kB / 363.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.1063, allocations: 0 / 363.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003593/0.1066, allocations: 141.3 kB / 363.7 MB, free: 7.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/0.1067, allocations: 140.8 kB / 363.8 MB, free: 7.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002812/0.107, allocations: 280.8 kB / 364.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.107, allocations: 25.7 kB / 364.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.915e-05/0.1071, allocations: 116.1 kB / 364.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.603e-05/0.1072, allocations: 19.75 kB / 364.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.431e-05/0.1072, allocations: 29.7 kB / 364.3 MB, free: 6.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.1073, allocations: 326.8 kB / 364.6 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.623e-05/0.1074, allocations: 23.98 kB / 364.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.345e-05/0.1075, allocations: 81.94 kB / 364.7 MB, free: 6.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/0.1077, allocations: 76.25 kB / 364.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1077, allocations: 0 / 364.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002233/0.1079, allocations: 113.4 kB / 364.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.1079, allocations: 4 kB / 364.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1079, allocations: 0 / 364.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.1079, allocations: 4 kB / 364.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.226e-05/0.108, allocations: 15.92 kB / 364.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.1081, allocations: 4.438 kB / 364.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.524e-05/0.1081, allocations: 19.84 kB / 364.9 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.1082, allocations: 8 kB / 364.9 MB, free: 6.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.000119/0.1083, allocations: 141.8 kB / 365.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.327e-05/0.1084, allocations: 65.44 kB / 365.1 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/0.1084, allocations: 21.72 kB / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1084, allocations: 0 / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1084, allocations: 0 / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1085, allocations: 11.98 kB / 365.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001906/0.1087, allocations: 229.4 kB / 365.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1087, allocations: 0 / 365.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.862e-05/0.1087, allocations: 7.938 kB / 365.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.1087, allocations: 7.984 kB / 365.4 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.1087, allocations: 4 kB / 365.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1087, allocations: 0 / 365.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1087, allocations: 4 kB / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002389/0.109, allocations: 150.5 kB / 365.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.727e-05/0.1091, allocations: 116.8 kB / 365.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.1091, allocations: 4 kB / 365.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.2e-05/0.1092, allocations: 4.094 kB / 365.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.284e-05/0.1092, allocations: 19.86 kB / 365.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.1093, allocations: 4 kB / 365.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.1095, allocations: 200.5 kB / 365.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.1095, allocations: 4 kB / 365.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002665/0.1097, allocations: 23.94 kB / 365.9 MB, free: 5.16 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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001436/0.1112, allocations: 0.9915 MB / 366.9 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002266/0.1114, allocations: 71.84 kB / 367 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1115, allocations: 4 kB / 367 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.208e-05/0.1115, allocations: 23.98 kB / 367 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004452/0.112, allocations: 76.84 kB / 367.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.1143, allocations: 1.945 MB / 369 MB, free: 2.043 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.1146, allocations: 0.7322 MB / 369.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.684e-05/0.1147, allocations: 25.48 kB / 369.8 MB, free: 1.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.244e-05/0.1148, allocations: 55.41 kB / 369.8 MB, free: 1.207 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1148, allocations: 0 / 369.8 MB, free: 1.207 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1921/0.307, allocations: 4.526 MB / 374.4 MB, free: 20.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.623/7.93, allocations: 3.953 kB / 374.4 MB, free: 20.1 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches