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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00185/0.00185, allocations: 122.4 kB / 17.74 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002263/0.002263, allocations: 186.9 kB / 20.68 MB, free: 2.293 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 246.4 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001454, allocations: 51.92 kB / 357.5 MB, free: 8.828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09697/0.09844, allocations: 49.44 MB / 406.9 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003411/0.1019, allocations: 1.876 MB / 408.8 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.1038, allocations: 1.145 MB / 409.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.1039, allocations: 7.938 kB / 409.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003199/0.1043, allocations: 63.66 kB / 410 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002524/0.1045, allocations: 91.59 kB / 410.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000718/0.1052, allocations: 254.1 kB / 410.3 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.1055, allocations: 167.6 kB / 410.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.1056, allocations: 25.53 kB / 410.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.1057, allocations: 83.62 kB / 410.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.1059, allocations: 75.69 kB / 410.7 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.1059, allocations: 8 kB / 410.7 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.1061, allocations: 59.97 kB / 410.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.598e-05/0.1062, allocations: 59.81 kB / 410.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.53e-05/0.1063, allocations: 75.42 kB / 410.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003451/0.1066, allocations: 235.2 kB / 411.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1066, allocations: 4 kB / 411.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1066, allocations: 0 / 411.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.1067, allocations: 0 / 411.1 MB, free: 3.125 MB / 334.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.0007633/0.1074, allocations: 0.548 MB / 411.7 MB, free: 2.523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1075, allocations: 11.97 kB / 411.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.1075, allocations: 38.75 kB / 411.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.831e-05/0.1076, allocations: 24.8 kB / 411.7 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.108, allocations: 291.8 kB / 412 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.108, allocations: 4.375 kB / 412 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.074e-05/0.1081, allocations: 7.938 kB / 412 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.1084, allocations: 167.5 kB / 412.2 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.1084, allocations: 3.938 kB / 412.2 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.1085, allocations: 4 kB / 412.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.1085, allocations: 0 / 412.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.1086, allocations: 35.98 kB / 412.2 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005392/0.1091, allocations: 382.3 kB / 412.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.1094, allocations: 119.9 kB / 412.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.1095, allocations: 46.56 kB / 412.8 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.1096, allocations: 4 kB / 412.8 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.1097, allocations: 83.38 kB / 412.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.1098, allocations: 0 / 412.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004016/0.1102, allocations: 153.5 kB / 413 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.1103, allocations: 162.2 kB / 413.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003574/0.1107, allocations: 326.6 kB / 413.5 MB, free: 476 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.1107, allocations: 37.64 kB / 413.5 MB, free: 432 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1108, allocations: 120.1 kB / 413.6 MB, free: 308 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.1108, allocations: 27.77 kB / 413.7 MB, free: 280 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.312e-05/0.1109, allocations: 29.67 kB / 413.7 MB, free: 244 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1111, allocations: 339 kB / 414 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.404e-05/0.1112, allocations: 19.98 kB / 414.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.1113, allocations: 82.86 kB / 414.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.1114, allocations: 88.2 kB / 414.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1115, allocations: 0 / 414.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002363/0.1117, allocations: 121.5 kB / 414.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1117, allocations: 8 kB / 414.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1117, allocations: 320 / 414.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1118, allocations: 12.06 kB / 414.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.1119, allocations: 15.98 kB / 414.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.1119, allocations: 8 kB / 414.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.846e-05/0.112, allocations: 11.89 kB / 414.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.112, allocations: 8 kB / 414.4 MB, free: 15.48 MB / 350.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.000169/0.1122, allocations: 157.8 kB / 414.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-05/0.1123, allocations: 61.56 kB / 414.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.966e-05/0.1123, allocations: 33.7 kB / 414.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.1124, allocations: 4 kB / 414.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1124, allocations: 0 / 414.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1124, allocations: 7.969 kB / 414.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002408/0.1126, allocations: 241.5 kB / 414.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1126, allocations: 0 / 414.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.114e-05/0.1127, allocations: 8 kB / 414.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1127, allocations: 4 kB / 414.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.1127, allocations: 3.984 kB / 414.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1127, allocations: 4 kB / 414.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1127, allocations: 0 / 414.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.113, allocations: 170.5 kB / 415.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.1131, allocations: 109 kB / 415.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.118e-05/0.1132, allocations: 4 kB / 415.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.924e-05/0.1133, allocations: 11.98 kB / 415.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.821e-05/0.1133, allocations: 7.938 kB / 415.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.1133, allocations: 11.98 kB / 415.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000244/0.1136, allocations: 238 kB / 415.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1136, allocations: 7.938 kB / 415.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002632/0.1139, allocations: 31.94 kB / 415.5 MB, free: 14.28 MB / 350.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.002/0.1159, allocations: 1.031 MB / 416.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002616/0.1162, allocations: 75.91 kB / 416.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.1162, allocations: 0 / 416.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.904e-05/0.1163, allocations: 27.98 kB / 416.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.1167, allocations: 69.02 kB / 416.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.1193, allocations: 2.193 MB / 418.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.1197, allocations: 0.7436 MB / 419.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.614e-05/0.1198, allocations: 29.53 kB / 419.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.1199, allocations: 55.42 kB / 419.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1199, allocations: 0 / 419.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02935/0.1493, allocations: 5.281 MB / 425 MB, free: 4.922 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.963/8.113, allocations: 7.547 kB / 425 MB, free: 4.918 MB / 350.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.691815820056945]