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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00176/0.00176, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002059/0.002059, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 67.89 kB / 373.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1035, allocations: 53.32 MB / 426.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003186/0.1067, allocations: 1.891 MB / 428.6 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.1088, allocations: 1.297 MB / 429.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.915e-05/0.1089, allocations: 7.938 kB / 429.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.1092, allocations: 71.66 kB / 429.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003309/0.1095, allocations: 135.4 kB / 430.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000571/0.1101, allocations: 230.9 kB / 430.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002405/0.1103, allocations: 179.5 kB / 430.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.1104, allocations: 21.55 kB / 430.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.1105, allocations: 79.62 kB / 430.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.1106, allocations: 79.67 kB / 430.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.101e-05/0.1107, allocations: 8 kB / 430.6 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.1108, allocations: 79.89 kB / 430.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.565e-05/0.1109, allocations: 51.83 kB / 430.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.293e-05/0.111, allocations: 75.42 kB / 430.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.1113, allocations: 250.9 kB / 431.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1113, allocations: 0 / 431.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1113, allocations: 0 / 431.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.1113, allocations: 0 / 431.1 MB, free: 0.5664 MB / 350.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.0007595/0.1121, allocations: 0.5388 MB / 431.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.1121, allocations: 12.03 kB / 431.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.845e-05/0.1122, allocations: 42.75 kB / 431.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.032e-05/0.1122, allocations: 24.8 kB / 431.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.1126, allocations: 299.7 kB / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.1126, allocations: 4.375 kB / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.1126, allocations: 8.375 kB / 432 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003215/0.113, allocations: 159.7 kB / 432.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.113, allocations: 0 / 432.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.113, allocations: 0 / 432.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.113, allocations: 0 / 432.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.1131, allocations: 39.92 kB / 432.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005173/0.1136, allocations: 390.3 kB / 432.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.1138, allocations: 115.9 kB / 432.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.786e-05/0.1139, allocations: 50.5 kB / 432.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.114, allocations: 0 / 432.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001683/0.1141, allocations: 75.38 kB / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.1141, allocations: 0 / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.000375/0.1145, allocations: 161.4 kB / 433 MB, free: 14.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.813e-05/0.1146, allocations: 162.2 kB / 433.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.1149, allocations: 334.7 kB / 433.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.115, allocations: 29.7 kB / 433.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.398e-05/0.1151, allocations: 132.1 kB / 433.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.1151, allocations: 15.91 kB / 433.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.134e-05/0.1151, allocations: 29.95 kB / 433.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1153, allocations: 342.8 kB / 434 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.772e-05/0.1154, allocations: 23.98 kB / 434 MB, free: 13.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.1155, allocations: 78.86 kB / 434.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.1156, allocations: 88.41 kB / 434.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1156, allocations: 3.938 kB / 434.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002228/0.1158, allocations: 129.5 kB / 434.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.1159, allocations: 8 kB / 434.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1159, allocations: 0 / 434.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.1159, allocations: 4.125 kB / 434.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.116, allocations: 23.92 kB / 434.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.116, allocations: 0 / 434.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.915e-05/0.1161, allocations: 11.94 kB / 434.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.1161, allocations: 4 kB / 434.4 MB, free: 12.92 MB / 366.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.0001358/0.1162, allocations: 157.8 kB / 434.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-05/0.1163, allocations: 73.44 kB / 434.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.365e-05/0.1163, allocations: 29.77 kB / 434.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.1164, allocations: 4 kB / 434.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1164, allocations: 0 / 434.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1164, allocations: 0 / 434.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002231/0.1166, allocations: 253.5 kB / 434.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.1166, allocations: 0 / 434.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.09e-05/0.1166, allocations: 12 kB / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1166, allocations: 0 / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.1167, allocations: 7.984 kB / 434.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1167, allocations: 3.938 kB / 434.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1167, allocations: 0 / 434.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.1169, allocations: 170.6 kB / 435.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.117, allocations: 116.9 kB / 435.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.849e-05/0.1171, allocations: 0 / 435.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.589e-05/0.1171, allocations: 11.98 kB / 435.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.1172, allocations: 4 kB / 435.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.1172, allocations: 16.05 kB / 435.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002398/0.1174, allocations: 249.9 kB / 435.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1174, allocations: 0 / 435.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002508/0.1177, allocations: 39.86 kB / 435.5 MB, free: 11.69 MB / 366.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.001908/0.1196, allocations: 1.01 MB / 436.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002239/0.1198, allocations: 79.83 kB / 436.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1198, allocations: 0 / 436.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.892e-05/0.1199, allocations: 31.92 kB / 436.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003863/0.1203, allocations: 58.58 kB / 436.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.1228, allocations: 2.232 MB / 438.9 MB, free: 8.273 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.1231, allocations: 0.7436 MB / 439.7 MB, free: 7.504 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.729e-05/0.1232, allocations: 25.55 kB / 439.7 MB, free: 7.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.52e-05/0.1233, allocations: 63.41 kB / 439.7 MB, free: 7.418 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1233, allocations: 0 / 439.7 MB, free: 7.418 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02679/0.1501, allocations: 5.382 MB / 445.1 MB, free: 2.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.983/8.133, allocations: 10.17 kB / 445.1 MB, free: 2.125 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.714399386197329]