Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001179/0.001179, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 59.94 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.104, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004554/0.1086, allocations: 1.889 MB / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002603/0.1112, allocations: 1.284 MB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002811/0.1116, allocations: 11.94 kB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004695/0.1121, allocations: 63.67 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006934/0.1128, allocations: 135.4 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009099/0.1137, allocations: 222.7 kB / 361.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002828/0.114, allocations: 183.5 kB / 361.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.1142, allocations: 37.53 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.1143, allocations: 75.7 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.1145, allocations: 75.67 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.46e-05/0.1145, allocations: 8 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.1147, allocations: 67.91 kB / 361.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.354e-05/0.1148, allocations: 51.77 kB / 361.7 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.804e-05/0.1149, allocations: 79.48 kB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.1153, allocations: 243.5 kB / 362 MB, free: 9.594 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1153, allocations: 0 / 362 MB, free: 9.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1154, allocations: 0 / 362 MB, free: 9.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.1154, allocations: 7.922 kB / 362 MB, free: 9.586 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.000913/0.1163, allocations: 0.531 MB / 362.5 MB, free: 9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.271e-05/0.1164, allocations: 12.03 kB / 362.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.243e-05/0.1164, allocations: 34.75 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.52e-05/0.1165, allocations: 28.64 kB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000444/0.117, allocations: 291.6 kB / 362.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.117, allocations: 8.359 kB / 362.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.278e-05/0.117, allocations: 11.94 kB / 362.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00043/0.1175, allocations: 159.5 kB / 363.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.1175, allocations: 0 / 363.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.1175, allocations: 0 / 363.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1175, allocations: 3.984 kB / 363.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.1177, allocations: 35.98 kB / 363.1 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006074/0.1183, allocations: 390.2 kB / 363.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000272/0.1186, allocations: 119.9 kB / 363.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.442e-05/0.1187, allocations: 42.56 kB / 363.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.1187, allocations: 4 kB / 363.6 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002993/0.119, allocations: 83.31 kB / 363.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.024e-06/0.119, allocations: 0 / 363.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004618/0.1195, allocations: 145.3 kB / 363.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.1196, allocations: 170.5 kB / 364 MB, free: 7.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.12, allocations: 338.6 kB / 364.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.1201, allocations: 29.7 kB / 364.4 MB, free: 6.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1202, allocations: 128.1 kB / 364.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.1202, allocations: 23.78 kB / 364.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.1203, allocations: 29.7 kB / 364.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1204, allocations: 330.8 kB / 364.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.872e-05/0.1205, allocations: 23.98 kB / 364.9 MB, free: 6.348 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.1206, allocations: 87.09 kB / 365 MB, free: 6.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.1208, allocations: 92.22 kB / 365.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1208, allocations: 0 / 365.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002491/0.1211, allocations: 121.3 kB / 365.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.1211, allocations: 8 kB / 365.2 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1211, allocations: 0 / 365.2 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.1211, allocations: 7.984 kB / 365.2 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.1213, allocations: 16 kB / 365.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.1213, allocations: 4.125 kB / 365.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.895e-05/0.1214, allocations: 19.83 kB / 365.3 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.1214, allocations: 4 kB / 365.3 MB, free: 5.949 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,shiftSample1.y,shiftSample1.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.0001592/0.1216, allocations: 161.6 kB / 365.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.393e-05/0.1217, allocations: 65.44 kB / 365.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.951e-05/0.1217, allocations: 25.7 kB / 365.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1217, allocations: 7.938 kB / 365.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1218, allocations: 0 / 365.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.1218, allocations: 8 kB / 365.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.122, allocations: 237.5 kB / 365.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.122, allocations: 4 kB / 365.8 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.892e-05/0.1221, allocations: 11.98 kB / 365.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1221, allocations: 0 / 365.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.1221, allocations: 4 kB / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1221, allocations: 3.938 kB / 365.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1221, allocations: 0 / 365.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.1224, allocations: 174.5 kB / 366 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.1226, allocations: 112.9 kB / 366.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.1226, allocations: 4 kB / 366.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.524e-05/0.1227, allocations: 4 kB / 366.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.433e-05/0.1227, allocations: 11.92 kB / 366.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.1227, allocations: 4 kB / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002433/0.123, allocations: 253.9 kB / 366.3 MB, free: 4.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.123, allocations: 4 kB / 366.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002766/0.1233, allocations: 32 kB / 366.4 MB, free: 4.738 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,shiftSample1.y,sample1.y,shiftSample1.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.001455/0.1248, allocations: 1.016 MB / 367.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002388/0.125, allocations: 79.84 kB / 367.5 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.125, allocations: 0 / 367.5 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.179e-05/0.1251, allocations: 31.92 kB / 367.5 MB, free: 3.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004146/0.1255, allocations: 68.16 kB / 367.6 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.1282, allocations: 2.222 MB / 369.8 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.1285, allocations: 0.7436 MB / 370.5 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.1287, allocations: 29.53 kB / 370.6 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.911e-05/0.1288, allocations: 59.41 kB / 370.6 MB, free: 472 kB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1288, allocations: 0 / 370.6 MB, free: 472 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2043/0.3331, allocations: 5.25 MB / 375.9 MB, free: 19.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.643/7.976, allocations: 10.33 kB / 375.9 MB, free: 19.64 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_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_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches