Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",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.001626/0.001626, allocations: 110.2 kB / 16.92 MB, free: 6.145 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.001857/0.001857, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.428/1.428, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 46.86 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09801, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003865/0.1019, allocations: 1.86 MB / 352 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.1041, allocations: 1.13 MB / 353.2 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002326/0.1043, allocations: 3.938 kB / 353.2 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000438/0.1048, allocations: 63.67 kB / 353.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003964/0.1052, allocations: 79.66 kB / 353.3 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.1063, allocations: 273.6 kB / 353.6 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003338/0.1066, allocations: 167.5 kB / 353.7 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.1068, allocations: 21.55 kB / 353.7 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.1069, allocations: 79.64 kB / 353.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.1071, allocations: 75.67 kB / 353.9 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.23e-05/0.1071, allocations: 12 kB / 353.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.1073, allocations: 59.97 kB / 354 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.631e-05/0.1074, allocations: 55.77 kB / 354 MB, free: 456 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.409e-05/0.1075, allocations: 75.48 kB / 354.1 MB, free: 380 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003757/0.1079, allocations: 227.5 kB / 354.3 MB, free: 152 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1079, allocations: 0 / 354.3 MB, free: 152 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1079, allocations: 0 / 354.3 MB, free: 152 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.844e-06/0.108, allocations: 0 / 354.3 MB, free: 152 kB / 286.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.0008384/0.1088, allocations: 0.5337 MB / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.1088, allocations: 12.03 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.324e-05/0.1089, allocations: 46.67 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.026e-05/0.109, allocations: 24.66 kB / 354.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.1093, allocations: 283.6 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.1094, allocations: 4.359 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.1094, allocations: 15.92 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.1097, allocations: 155.6 kB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.1098, allocations: 3.938 kB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.1098, allocations: 4 kB / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.1098, allocations: 0 / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/0.1099, allocations: 35.98 kB / 355.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005531/0.1105, allocations: 382.3 kB / 355.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.1108, allocations: 123.9 kB / 355.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.124e-05/0.1109, allocations: 50.5 kB / 356 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.1109, allocations: 4.078 kB / 356 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.1112, allocations: 87.3 kB / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.064e-06/0.1112, allocations: 0 / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003895/0.1116, allocations: 149.3 kB / 356.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.502e-05/0.1117, allocations: 154.2 kB / 356.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000331/0.112, allocations: 334.6 kB / 356.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.1121, allocations: 29.7 kB / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.572e-05/0.1122, allocations: 124.3 kB / 356.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.1122, allocations: 19.81 kB / 356.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.576e-05/0.1123, allocations: 33.7 kB / 356.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1124, allocations: 330.8 kB / 357.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.03e-05/0.1125, allocations: 27.92 kB / 357.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.1126, allocations: 86.8 kB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.1127, allocations: 84.47 kB / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1127, allocations: 0 / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002338/0.113, allocations: 133.3 kB / 357.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.113, allocations: 10.81 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.113, allocations: 0 / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.113, allocations: 4 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.1132, allocations: 19.98 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.1132, allocations: 4 kB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.474e-05/0.1133, allocations: 7.938 kB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.816e-06/0.1133, allocations: 4 kB / 357.6 MB, free: 12.53 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,table.y,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.0001493/0.1134, allocations: 166.9 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.737e-05/0.1135, allocations: 65.42 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.332e-05/0.1136, allocations: 25.7 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.1136, allocations: 4 kB / 357.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1136, allocations: 0 / 357.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1136, allocations: 7.875 kB / 357.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.1138, allocations: 233.6 kB / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1138, allocations: 3.984 kB / 358.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.263e-05/0.1139, allocations: 8 kB / 358.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1139, allocations: 4 kB / 358.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.1139, allocations: 4.062 kB / 358.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1139, allocations: 4 kB / 358.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1139, allocations: 0 / 358.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002545/0.1142, allocations: 166.3 kB / 358.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.231e-05/0.1143, allocations: 116.8 kB / 358.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.302e-05/0.1143, allocations: 4 kB / 358.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.487e-05/0.1144, allocations: 8 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.053e-05/0.1145, allocations: 15.92 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.1145, allocations: 8.109 kB / 358.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002163/0.1147, allocations: 245.9 kB / 358.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1147, allocations: 0 / 358.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.115, allocations: 32 kB / 358.7 MB, free: 11.33 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,table.y,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.001386/0.1164, allocations: 1.023 MB / 359.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002311/0.1167, allocations: 75.91 kB / 359.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.1167, allocations: 0 / 359.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.025e-05/0.1168, allocations: 28.23 kB / 359.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.1172, allocations: 86.97 kB / 359.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002552/0.1197, allocations: 2.176 MB / 362.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.1201, allocations: 0.7475 MB / 362.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.1202, allocations: 25.53 kB / 362.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.1203, allocations: 59.41 kB / 362.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1203, allocations: 0 / 362.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02338/0.1437, allocations: 5.113 MB / 368 MB, free: 2.102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.564/7.708, allocations: 11.38 kB / 368 MB, free: 2.094 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches