Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001104/0.001103, allocations: 102.7 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.001221/0.001221, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.38/1.38, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 41.27 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.1002, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004117/0.1043, allocations: 1.864 MB / 352 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0028/0.1072, allocations: 1.138 MB / 353.2 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.1074, allocations: 4 kB / 353.2 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003757/0.1078, allocations: 63.66 kB / 353.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003744/0.1082, allocations: 91.59 kB / 353.3 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.1094, allocations: 259.7 kB / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003497/0.1097, allocations: 171.5 kB / 353.7 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.1099, allocations: 29.56 kB / 353.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.1101, allocations: 75.62 kB / 353.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.1103, allocations: 79.69 kB / 353.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.1103, allocations: 8 kB / 353.9 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002276/0.1106, allocations: 59.97 kB / 354 MB, free: 472 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.1107, allocations: 55.75 kB / 354 MB, free: 416 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.1109, allocations: 75.48 kB / 354.1 MB, free: 340 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004629/0.1113, allocations: 227.6 kB / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1114, allocations: 3.938 kB / 354.3 MB, free: 108 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1114, allocations: 0 / 354.3 MB, free: 108 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1114, allocations: 0 / 354.3 MB, free: 108 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.001087/0.1125, allocations: 0.539 MB / 354.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.1125, allocations: 15.97 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.609e-05/0.1126, allocations: 30.75 kB / 354.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.893e-05/0.1127, allocations: 28.66 kB / 355 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004659/0.1132, allocations: 279.6 kB / 355.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.1132, allocations: 8.375 kB / 355.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.1133, allocations: 7.938 kB / 355.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.1138, allocations: 167.1 kB / 355.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1138, allocations: 0 / 355.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.1138, allocations: 7.938 kB / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1139, allocations: 0 / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.1141, allocations: 39.97 kB / 355.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007252/0.1148, allocations: 378.3 kB / 355.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.1152, allocations: 119.9 kB / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.1154, allocations: 46.56 kB / 356 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.242e-05/0.1154, allocations: 4.078 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003364/0.1157, allocations: 83.3 kB / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.114e-06/0.1158, allocations: 0 / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005985/0.1164, allocations: 157.3 kB / 356.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.1165, allocations: 158.2 kB / 356.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005391/0.1171, allocations: 330.6 kB / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.1171, allocations: 33.7 kB / 356.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.1173, allocations: 120.1 kB / 356.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.1173, allocations: 23.73 kB / 356.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.701e-05/0.1174, allocations: 33.95 kB / 356.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1176, allocations: 330.8 kB / 357.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.1177, allocations: 20.23 kB / 357.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.1179, allocations: 90.78 kB / 357.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.1182, allocations: 88.22 kB / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1182, allocations: 0 / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004065/0.1186, allocations: 125.3 kB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.1187, allocations: 8.125 kB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1187, allocations: 4 kB / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.1188, allocations: 0 / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.1189, allocations: 19.98 kB / 357.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.119, allocations: 4 kB / 357.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.1191, allocations: 7.938 kB / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.1191, allocations: 11.98 kB / 357.6 MB, free: 12.49 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.0002175/0.1194, allocations: 153.7 kB / 357.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.1195, allocations: 69.41 kB / 357.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.057e-05/0.1196, allocations: 29.66 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.1197, allocations: 3.984 kB / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1197, allocations: 4 kB / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1197, allocations: 3.938 kB / 357.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003009/0.12, allocations: 233.6 kB / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.12, allocations: 0 / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.651e-05/0.1201, allocations: 8 kB / 358.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/0.1201, allocations: 7.984 kB / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.1202, allocations: 0 / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.1202, allocations: 4 kB / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1202, allocations: 8.125 kB / 358.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003085/0.1205, allocations: 170.3 kB / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.1206, allocations: 108.8 kB / 358.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.1207, allocations: 7.984 kB / 358.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.758e-05/0.1207, allocations: 8 kB / 358.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.215e-05/0.1208, allocations: 15.92 kB / 358.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.1208, allocations: 4 kB / 358.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002614/0.1211, allocations: 237.9 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.1211, allocations: 0 / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.1214, allocations: 43.92 kB / 358.7 MB, free: 11.29 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.001805/0.1232, allocations: 1.017 MB / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003411/0.1236, allocations: 79.89 kB / 359.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1236, allocations: 0 / 359.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.1237, allocations: 31.92 kB / 359.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006016/0.1243, allocations: 84.03 kB / 359.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003683/0.128, allocations: 2.18 MB / 362.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004492/0.1285, allocations: 0.7436 MB / 362.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000125/0.1287, allocations: 25.53 kB / 362.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.1288, allocations: 55.42 kB / 362.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1288, allocations: 0 / 362.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.1522, allocations: 5.171 MB / 368.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.512/7.664, allocations: 2.922 kB / 368.1 MB, free: 2.012 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches