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.0009167/0.0009167, allocations: 80.06 kB / 20.67 MB, free: 3.879 MB / 18.57 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.0009553/0.0009553, allocations: 149.1 kB / 23.93 MB, free: 0.625 MB / 18.57 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 0.9167/0.9167, allocations: 173.4 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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 2.746e-06/2.746e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.892e-05/3.167e-05, allocations: 3.688 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003047/0.003079, allocations: 1.865 MB / 320.3 MB, free: 4.496 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.004657, allocations: 1.114 MB / 321.4 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.004799, allocations: 7.938 kB / 321.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000357/0.005156, allocations: 67.59 kB / 321.5 MB, free: 3.301 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003183/0.005475, allocations: 107.5 kB / 321.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006543/0.006129, allocations: 265.5 kB / 321.8 MB, free: 2.938 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.006369, allocations: 187.4 kB / 322 MB, free: 2.754 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004178/0.006787, allocations: 29.77 kB / 322.1 MB, free: 2.723 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.00693, allocations: 107.7 kB / 322.2 MB, free: 2.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.007044, allocations: 71.8 kB / 322.2 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.238e-05/0.007067, allocations: 12 kB / 322.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.007236, allocations: 67.88 kB / 322.3 MB, free: 2.469 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.835e-05/0.007314, allocations: 55.83 kB / 322.4 MB, free: 2.414 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.781e-05/0.007372, allocations: 43.8 kB / 322.4 MB, free: 2.371 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003348/0.007707, allocations: 247.2 kB / 322.6 MB, free: 2.129 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.007713, allocations: 0 / 322.6 MB, free: 2.129 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.007715, allocations: 3.938 kB / 322.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.007721, allocations: 0 / 322.6 MB, free: 2.125 MB / 282.7 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.000718/0.008439, allocations: 481.8 kB / 323.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.245e-05/0.008501, allocations: 8.922 kB / 323.1 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.757e-05/0.008549, allocations: 38.75 kB / 323.2 MB, free: 1.566 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.69e-05/0.008616, allocations: 24.8 kB / 323.2 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/0.009041, allocations: 244.6 kB / 323.4 MB, free: 1.273 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.00906, allocations: 8.375 kB / 323.4 MB, free: 1.266 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.009074, allocations: 4.375 kB / 323.4 MB, free: 1.262 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004515/0.009526, allocations: 205 kB / 323.6 MB, free: 1.031 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.009538, allocations: 4 kB / 323.6 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.009554, allocations: 7.938 kB / 323.7 MB, free: 1.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.009563, allocations: 4 kB / 323.7 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001188/0.009682, allocations: 39.91 kB / 323.7 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005731/0.01026, allocations: 350.3 kB / 324 MB, free: 0.582 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00023/0.01049, allocations: 138.5 kB / 324.2 MB, free: 420 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.109e-05/0.01056, allocations: 59.42 kB / 324.2 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.01059, allocations: 3.984 kB / 324.2 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001752/0.01077, allocations: 87.38 kB / 324.3 MB, free: 244 kB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.873e-06/0.01077, allocations: 0 / 324.3 MB, free: 244 kB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003292/0.0111, allocations: 177.4 kB / 324.5 MB, free: 60 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/0.01118, allocations: 158.2 kB / 324.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002488/0.01143, allocations: 345.8 kB / 325 MB, free: 15.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.01144, allocations: 26.08 kB / 325 MB, free: 15.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.942e-05/0.01152, allocations: 132.4 kB / 325.1 MB, free: 15.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.01154, allocations: 7.906 kB / 325.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.883e-05/0.01159, allocations: 33.7 kB / 325.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.01172, allocations: 338.7 kB / 325.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.528e-05/0.01178, allocations: 27.92 kB / 325.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9e-05/0.01187, allocations: 110.8 kB / 325.6 MB, free: 14.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.48e-05/0.01196, allocations: 53.7 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.01197, allocations: 4 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001686/0.01214, allocations: 117.8 kB / 325.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.01216, allocations: 4 kB / 325.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.01217, allocations: 3.984 kB / 325.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.01219, allocations: 4 kB / 325.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.01229, allocations: 8 kB / 325.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.0123, allocations: 4 kB / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.843e-05/0.01234, allocations: 3.984 kB / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-06/0.01235, allocations: 8.156 kB / 325.9 MB, free: 14.59 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001267/0.01248, allocations: 155.5 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.569e-05/0.01257, allocations: 89.41 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002111/0.01278, allocations: 131.4 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.01278, allocations: 3.984 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.01279, allocations: 0 / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.0128, allocations: 4 kB / 326.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.013, allocations: 208.5 kB / 326.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.013, allocations: 0 / 326.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.051e-05/0.01307, allocations: 19.92 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.01308, allocations: 4 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.01309, allocations: 4.094 kB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.0131, allocations: 8 kB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.0131, allocations: 0 / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.01332, allocations: 187.5 kB / 326.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.453e-05/0.0134, allocations: 39.8 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.01342, allocations: 4 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.954e-05/0.01346, allocations: 15.92 kB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.415e-05/0.01351, allocations: 11.92 kB / 326.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.01353, allocations: 4 kB / 326.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001729/0.0137, allocations: 245.2 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.0137, allocations: 4 kB / 327 MB, free: 13.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002149/0.01392, allocations: 35.94 kB / 327 MB, free: 13.35 MB / 298.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001187/0.01511, allocations: 1.078 MB / 328.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001974/0.0153, allocations: 71.89 kB / 328.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.01531, allocations: 0 / 328.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.616e-05/0.01536, allocations: 31.98 kB / 328.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003467/0.01571, allocations: 81.05 kB / 328.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.01804, allocations: 2.196 MB / 330.5 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.01816, allocations: 128.5 kB / 330.6 MB, free: 9.785 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.209e-05/0.01825, allocations: 29.62 kB / 330.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.83e-05/0.01834, allocations: 64.47 kB / 330.7 MB, free: 9.695 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01834, allocations: 0 / 330.7 MB, free: 9.695 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.03923, allocations: 6.439 MB / 337.1 MB, free: 3.336 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.098/7.137, allocations: 7.922 kB / 337.1 MB, free: 3.328 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.912433713674545]