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.001259/0.001259, allocations: 117 kB / 17.78 MB, free: 5.234 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.001356/0.001356, allocations: 194.7 kB / 20.73 MB, free: 2.297 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.379/1.379, allocations: 225.6 MB / 249.1 MB, free: 3.598 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.001451/0.001451, allocations: 55.91 kB / 365.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09868, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003259/0.1019, allocations: 1.888 MB / 419.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001889/0.1038, allocations: 1.157 MB / 420.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1039, allocations: 7.938 kB / 420.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002835/0.1042, allocations: 59.66 kB / 420.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.1045, allocations: 95.59 kB / 421 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006993/0.1052, allocations: 250.6 kB / 421.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.1054, allocations: 167.5 kB / 421.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.816e-05/0.1055, allocations: 29.48 kB / 421.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.1056, allocations: 75.69 kB / 421.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001281/0.1058, allocations: 87.61 kB / 421.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.1058, allocations: 8 kB / 421.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001525/0.1059, allocations: 67.95 kB / 421.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.174e-05/0.106, allocations: 59.77 kB / 421.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.258e-05/0.1061, allocations: 71.48 kB / 421.8 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.1065, allocations: 242.9 kB / 422 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1065, allocations: 0 / 422 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1065, allocations: 0 / 422 MB, free: 8.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.1065, allocations: 0 / 422 MB, free: 8.348 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.0007603/0.1072, allocations: 0.5349 MB / 422.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.1073, allocations: 8.031 kB / 422.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.579e-05/0.1073, allocations: 42.73 kB / 422.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.575e-05/0.1074, allocations: 24.8 kB / 422.6 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.1079, allocations: 295.7 kB / 422.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.1079, allocations: 4.375 kB / 422.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.1079, allocations: 7.938 kB / 422.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.1082, allocations: 159.6 kB / 423.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.1082, allocations: 4 kB / 423.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.1083, allocations: 0 / 423.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.1083, allocations: 0 / 423.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.1084, allocations: 43.91 kB / 423.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005518/0.1089, allocations: 382.3 kB / 423.5 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002546/0.1092, allocations: 115.9 kB / 423.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.08e-05/0.1093, allocations: 46.56 kB / 423.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.033e-05/0.1093, allocations: 8.062 kB / 423.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001761/0.1095, allocations: 79.31 kB / 423.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.432e-06/0.1095, allocations: 0 / 423.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003925/0.1099, allocations: 157.6 kB / 423.9 MB, free: 6.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.11, allocations: 154.2 kB / 424 MB, free: 6.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000347/0.1103, allocations: 330.6 kB / 424.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.1104, allocations: 29.7 kB / 424.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.654e-05/0.1104, allocations: 120.1 kB / 424.5 MB, free: 5.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.616e-05/0.1105, allocations: 19.89 kB / 424.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.805e-05/0.1105, allocations: 37.66 kB / 424.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1107, allocations: 330.9 kB / 424.9 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.325e-05/0.1107, allocations: 27.92 kB / 424.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.1109, allocations: 94.77 kB / 425 MB, free: 5.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.111, allocations: 84.47 kB / 425.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.111, allocations: 0 / 425.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002584/0.1113, allocations: 125.5 kB / 425.2 MB, free: 4.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.1113, allocations: 11.94 kB / 425.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1113, allocations: 0 / 425.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.1113, allocations: 8.125 kB / 425.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.1114, allocations: 15.98 kB / 425.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.1114, allocations: 4 kB / 425.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.907e-05/0.1115, allocations: 19.81 kB / 425.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.1115, allocations: 4 kB / 425.3 MB, free: 4.719 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.0001402/0.1117, allocations: 157.8 kB / 425.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.77e-05/0.1118, allocations: 65.55 kB / 425.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.585e-05/0.1118, allocations: 25.7 kB / 425.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.1118, allocations: 8.062 kB / 425.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1118, allocations: 0 / 425.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1118, allocations: 3.938 kB / 425.5 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.112, allocations: 233.6 kB / 425.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.112, allocations: 0 / 425.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.529e-05/0.1121, allocations: 15.92 kB / 425.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1121, allocations: 4 kB / 425.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.1121, allocations: 0 / 425.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.1121, allocations: 4 kB / 425.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1121, allocations: 0 / 425.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.1124, allocations: 166.5 kB / 426 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.1125, allocations: 120.9 kB / 426.1 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.197e-05/0.1125, allocations: 4 kB / 426.1 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.208e-05/0.1126, allocations: 4 kB / 426.1 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.551e-05/0.1127, allocations: 15.92 kB / 426.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.1127, allocations: 12.06 kB / 426.1 MB, free: 3.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002391/0.1129, allocations: 241.9 kB / 426.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1129, allocations: 4 kB / 426.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000268/0.1132, allocations: 31.98 kB / 426.4 MB, free: 3.512 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.001959/0.1152, allocations: 1.018 MB / 427.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002473/0.1154, allocations: 75.83 kB / 427.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1154, allocations: 0 / 427.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.119e-05/0.1155, allocations: 27.98 kB / 427.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.1159, allocations: 69.72 kB / 427.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.1184, allocations: 2.206 MB / 429.8 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.1188, allocations: 0.7358 MB / 430.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.1189, allocations: 33.52 kB / 430.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.119, allocations: 59.41 kB / 430.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.119, allocations: 0 / 430.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.1464, allocations: 5.298 MB / 435.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.38/8.527, allocations: 4 kB / 435.9 MB, free: 10.11 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.255991229787469]