Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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: 125 kB / 17.79 MB, free: 5.121 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.001256/0.001256, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.377/1.377, allocations: 225.6 MB / 249.1 MB, free: 3.625 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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 55.91 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09752, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003441/0.101, allocations: 1.909 MB / 419.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.103, allocations: 1.184 MB / 420.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.1032, allocations: 4 kB / 420.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.1035, allocations: 63.66 kB / 420.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.1038, allocations: 103.5 kB / 421 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007874/0.1046, allocations: 262.2 kB / 421.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.1049, allocations: 175.5 kB / 421.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.105, allocations: 25.53 kB / 421.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.1051, allocations: 79.64 kB / 421.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.1052, allocations: 91.59 kB / 421.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.1053, allocations: 12 kB / 421.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001697/0.1054, allocations: 67.95 kB / 421.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.504e-05/0.1055, allocations: 51.77 kB / 421.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.598e-05/0.1056, allocations: 79.48 kB / 421.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003928/0.106, allocations: 254.8 kB / 422.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.106, allocations: 0 / 422.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.106, allocations: 0 / 422.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.106, allocations: 0 / 422.1 MB, free: 8.262 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008404/0.1069, allocations: 0.5542 MB / 422.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.1069, allocations: 8.031 kB / 422.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.802e-05/0.107, allocations: 38.75 kB / 422.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.367e-05/0.107, allocations: 20.8 kB / 422.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.1075, allocations: 303.7 kB / 423 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.1075, allocations: 8.312 kB / 423 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.1075, allocations: 11.94 kB / 423.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003819/0.1079, allocations: 180.4 kB / 423.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1079, allocations: 3.938 kB / 423.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.1079, allocations: 0 / 423.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1079, allocations: 4 kB / 423.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/0.1081, allocations: 47.91 kB / 423.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005839/0.1087, allocations: 391.2 kB / 423.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.1089, allocations: 146.4 kB / 423.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.109, allocations: 55.42 kB / 423.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.1091, allocations: 4 kB / 423.9 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.1093, allocations: 83.31 kB / 423.9 MB, free: 6.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.1093, allocations: 0 / 423.9 MB, free: 6.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004215/0.1097, allocations: 165.4 kB / 424.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.1098, allocations: 192.2 kB / 424.3 MB, free: 5.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000382/0.1102, allocations: 338.6 kB / 424.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.1102, allocations: 29.7 kB / 424.7 MB, free: 5.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1103, allocations: 128.4 kB / 424.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/0.1104, allocations: 23.83 kB / 424.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.043e-05/0.1104, allocations: 33.7 kB / 424.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.1106, allocations: 330.8 kB / 425.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.026e-05/0.1107, allocations: 31.98 kB / 425.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.1108, allocations: 100.5 kB / 425.3 MB, free: 4.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.111, allocations: 106.2 kB / 425.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.111, allocations: 0 / 425.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002802/0.1113, allocations: 145.5 kB / 425.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.1113, allocations: 4 kB / 425.5 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1113, allocations: 4 kB / 425.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1113, allocations: 0 / 425.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.1115, allocations: 27.92 kB / 425.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.1115, allocations: 0 / 425.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.392e-05/0.1115, allocations: 15.89 kB / 425.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.1116, allocations: 11.98 kB / 425.6 MB, free: 4.379 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * 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.000157/0.1117, allocations: 154.4 kB / 425.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.1118, allocations: 77.48 kB / 425.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.294e-05/0.1119, allocations: 29.7 kB / 425.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1119, allocations: 4 kB / 425.9 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1119, allocations: 0 / 425.9 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.1119, allocations: 7.875 kB / 425.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002506/0.1122, allocations: 249.5 kB / 426.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1122, allocations: 0 / 426.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.934e-05/0.1122, allocations: 12 kB / 426.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.1122, allocations: 8.125 kB / 426.1 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.1122, allocations: 7.984 kB / 426.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1122, allocations: 3.938 kB / 426.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.1123, allocations: 7.938 kB / 426.2 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.1125, allocations: 179.4 kB / 426.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.1127, allocations: 120.9 kB / 426.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/0.1127, allocations: 4.062 kB / 426.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/0.1128, allocations: 12 kB / 426.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/0.1128, allocations: 11.92 kB / 426.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.1129, allocations: 4 kB / 426.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002519/0.1131, allocations: 245.9 kB / 426.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1131, allocations: 3.938 kB / 426.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.1134, allocations: 39.94 kB / 426.8 MB, free: 3.105 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.002046/0.1154, allocations: 1.042 MB / 427.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002545/0.1157, allocations: 95.83 kB / 427.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1157, allocations: 0 / 427.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.899e-05/0.1158, allocations: 23.98 kB / 427.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004392/0.1162, allocations: 82.14 kB / 428 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002862/0.1191, allocations: 2.278 MB / 430.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.1195, allocations: 0.7553 MB / 431 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.1196, allocations: 21.55 kB / 431.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.1197, allocations: 63.41 kB / 431.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of SimCode: time 9.21e-07/0.1197, allocations: 0 / 431.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02888/0.1486, allocations: 5.602 MB / 436.7 MB, free: 9.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.373/8.522, allocations: 15.92 kB / 436.7 MB, free: 9.219 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.131195819936693]