Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001622/0.001622, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00208/0.00208, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 59.47 kB / 307.1 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09955, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003481/0.1031, allocations: 1.883 MB / 359.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.1056, allocations: 1.27 MB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.1058, allocations: 4 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003594/0.1062, allocations: 75.59 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004646/0.1067, allocations: 127.5 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007662/0.1075, allocations: 226.6 kB / 361.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002852/0.1078, allocations: 183.5 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.1079, allocations: 33.53 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1081, allocations: 71.69 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.1082, allocations: 75.69 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.94e-05/0.1082, allocations: 12 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001755/0.1084, allocations: 67.91 kB / 361.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.536e-05/0.1085, allocations: 59.75 kB / 361.7 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.446e-05/0.1086, allocations: 75.48 kB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003721/0.109, allocations: 231.5 kB / 362 MB, free: 9.629 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.109, allocations: 0 / 362 MB, free: 9.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.109, allocations: 0 / 362 MB, free: 9.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.1091, allocations: 0 / 362 MB, free: 9.629 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.0007825/0.1098, allocations: 0.5466 MB / 362.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.1099, allocations: 12.03 kB / 362.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.713e-05/0.11, allocations: 42.73 kB / 362.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.902e-05/0.11, allocations: 20.66 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003629/0.1104, allocations: 279.6 kB / 362.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.1104, allocations: 8.375 kB / 362.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.1105, allocations: 7.938 kB / 362.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.1108, allocations: 163.5 kB / 363 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1109, allocations: 3.938 kB / 363 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.1109, allocations: 4 kB / 363 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1109, allocations: 4 kB / 363 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.111, allocations: 31.97 kB / 363.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005409/0.1116, allocations: 394.2 kB / 363.5 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000259/0.1118, allocations: 115.9 kB / 363.6 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.265e-05/0.1119, allocations: 54.56 kB / 363.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.112, allocations: 4 kB / 363.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/0.1122, allocations: 75.31 kB / 363.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.1122, allocations: 0 / 363.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004221/0.1126, allocations: 161.3 kB / 363.9 MB, free: 7.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.586e-05/0.1127, allocations: 158.2 kB / 364 MB, free: 7.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003771/0.1131, allocations: 338.6 kB / 364.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.1132, allocations: 29.7 kB / 364.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.707e-05/0.1133, allocations: 128.1 kB / 364.5 MB, free: 6.789 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.562e-05/0.1133, allocations: 19.75 kB / 364.5 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.637e-05/0.1133, allocations: 33.95 kB / 364.5 MB, free: 6.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1135, allocations: 334.8 kB / 364.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.29e-05/0.1135, allocations: 23.98 kB / 364.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.1137, allocations: 82.86 kB / 365 MB, free: 6.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.1138, allocations: 84.22 kB / 365.1 MB, free: 6.168 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1139, allocations: 0 / 365.1 MB, free: 6.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002531/0.1141, allocations: 129.2 kB / 365.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.1141, allocations: 4 kB / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1142, allocations: 0 / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.1142, allocations: 8.125 kB / 365.2 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.1143, allocations: 19.98 kB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.1143, allocations: 0 / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.508e-05/0.1144, allocations: 19.78 kB / 365.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.1144, allocations: 4.047 kB / 365.2 MB, free: 5.98 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.0001512/0.1146, allocations: 162 kB / 365.4 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.188e-05/0.1147, allocations: 61.45 kB / 365.5 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.094e-05/0.1148, allocations: 33.77 kB / 365.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1148, allocations: 0 / 365.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1148, allocations: 4 kB / 365.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1148, allocations: 7.938 kB / 365.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.115, allocations: 245.5 kB / 365.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.115, allocations: 0 / 365.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.58e-05/0.1151, allocations: 8 kB / 365.8 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.1151, allocations: 4 kB / 365.8 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.1151, allocations: 3.984 kB / 365.8 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1151, allocations: 0 / 365.8 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1151, allocations: 7.938 kB / 365.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.1154, allocations: 166.4 kB / 365.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.499e-05/0.1155, allocations: 112.8 kB / 366 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.1156, allocations: 7.984 kB / 366 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.773e-05/0.1156, allocations: 4 kB / 366.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.1157, allocations: 15.92 kB / 366.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.1157, allocations: 8 kB / 366.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002239/0.116, allocations: 241.9 kB / 366.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.333e-06/0.116, allocations: 0 / 366.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002802/0.1162, allocations: 39.92 kB / 366.4 MB, free: 4.766 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.001747/0.118, allocations: 1.01 MB / 367.4 MB, free: 3.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002416/0.1183, allocations: 75.91 kB / 367.4 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1183, allocations: 0 / 367.4 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.089e-05/0.1184, allocations: 31.92 kB / 367.5 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004189/0.1188, allocations: 65.06 kB / 367.5 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.1214, allocations: 2.23 MB / 369.8 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/0.1217, allocations: 0.7475 MB / 370.5 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.1218, allocations: 25.53 kB / 370.5 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.1219, allocations: 59.42 kB / 370.6 MB, free: 500 kB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1219, allocations: 0 / 370.6 MB, free: 500 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1863/0.3083, allocations: 5.208 MB / 375.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.703/8.011, allocations: 7.891 kB / 375.8 MB, free: 19.62 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches