Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002088/0.002088, allocations: 213.6 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.557/1.557, allocations: 230.6 MB / 257.5 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 51.92 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3146, allocations: 53.37 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.00416/0.3188, allocations: 1.937 MB / 433.1 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.3213, allocations: 1.344 MB / 434.4 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.3215, allocations: 7.938 kB / 434.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003343/0.3218, allocations: 67.66 kB / 434.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004473/0.3223, allocations: 135.4 kB / 434.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007671/0.323, allocations: 231.3 kB / 434.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00036/0.3234, allocations: 191.5 kB / 435 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.3235, allocations: 27.47 kB / 435.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.3237, allocations: 91.58 kB / 435.2 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.3239, allocations: 83.67 kB / 435.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.978e-05/0.3239, allocations: 8 kB / 435.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.3241, allocations: 75.88 kB / 435.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.3242, allocations: 63.75 kB / 435.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.3243, allocations: 87.42 kB / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004363/0.3247, allocations: 254.8 kB / 435.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3247, allocations: 0 / 435.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3247, allocations: 0 / 435.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.3248, allocations: 0 / 435.7 MB, free: 2.238 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009012/0.3257, allocations: 494.4 kB / 436.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.3257, allocations: 8.031 kB / 436.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.91e-05/0.3258, allocations: 50.67 kB / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.157e-05/0.3259, allocations: 24.8 kB / 436.3 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000511/0.3264, allocations: 242.6 kB / 436.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.3264, allocations: 384 / 436.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.3264, allocations: 15.94 kB / 436.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004264/0.3268, allocations: 186.2 kB / 436.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3269, allocations: 0 / 436.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.3269, allocations: 0 / 436.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.3269, allocations: 4 kB / 436.7 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.327, allocations: 47.89 kB / 436.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006374/0.3277, allocations: 366.3 kB / 437.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.328, allocations: 150.5 kB / 437.3 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.3281, allocations: 59.34 kB / 437.3 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.3281, allocations: 4 kB / 437.3 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.3283, allocations: 79.33 kB / 437.4 MB, free: 344 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/0.3283, allocations: 0 / 437.4 MB, free: 344 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004694/0.3288, allocations: 173.3 kB / 437.6 MB, free: 164 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.3289, allocations: 191.9 kB / 437.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004231/0.3294, allocations: 352.5 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.3294, allocations: 29.7 kB / 438.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.3295, allocations: 128.4 kB / 438.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.3295, allocations: 23.83 kB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.399e-05/0.3296, allocations: 33.67 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3298, allocations: 338.8 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.08e-05/0.3298, allocations: 23.98 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.33, allocations: 104.6 kB / 438.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.3302, allocations: 105.9 kB / 438.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3302, allocations: 0 / 438.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002803/0.3305, allocations: 137.7 kB / 439 MB, free: 14.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3305, allocations: 8 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.3305, allocations: 0 / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.3306, allocations: 4 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.3307, allocations: 32.11 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.3307, allocations: 4 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.649e-05/0.3308, allocations: 7.938 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.3308, allocations: 4 kB / 439.1 MB, free: 14.52 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.0002014/0.331, allocations: 157.8 kB / 439.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.3311, allocations: 81.44 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002966/0.3314, allocations: 127.4 kB / 439.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3314, allocations: 0 / 439.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3314, allocations: 4 kB / 439.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.3314, allocations: 11.86 kB / 439.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.3317, allocations: 216.7 kB / 439.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.3317, allocations: 3.984 kB / 439.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.69e-05/0.3318, allocations: 19.94 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.3318, allocations: 0 / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.3318, allocations: 4 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.3318, allocations: 3.984 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.3318, allocations: 7.938 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.3321, allocations: 183.4 kB / 439.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.831e-05/0.3322, allocations: 43.8 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.3322, allocations: 0 / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.384e-05/0.3323, allocations: 7.984 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.3324, allocations: 19.92 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.3324, allocations: 4 kB / 440 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002868/0.3327, allocations: 255 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3327, allocations: 0 / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002948/0.333, allocations: 35.94 kB / 440.2 MB, free: 13.27 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.002105/0.3351, allocations: 1.039 MB / 441.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002682/0.3353, allocations: 83.83 kB / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3353, allocations: 384 / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.724e-05/0.3354, allocations: 31.98 kB / 441.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.3359, allocations: 100.6 kB / 441.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002971/0.3389, allocations: 2.307 MB / 443.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.3393, allocations: 0.7515 MB / 444.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.639e-05/0.3394, allocations: 29.62 kB / 444.6 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.3395, allocations: 63.41 kB / 444.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3395, allocations: 0 / 444.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03847/0.3779, allocations: 5.861 MB / 450.5 MB, free: 3.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.55, allocations: 4.344 kB / 450.5 MB, free: 3.062 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.208435195032507]