Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.001362/0.001362, allocations: 111.1 kB / 20.44 MB, free: 1.172 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.001419/0.001419, allocations: 214.4 kB / 23.73 MB, free: 4.383 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.561/1.561, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 47.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2997, allocations: 53.36 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003735/0.3035, allocations: 1.886 MB / 433 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.3062, allocations: 1.22 MB / 434.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.3064, allocations: 7.938 kB / 434.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004054/0.3068, allocations: 67.66 kB / 434.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004342/0.3072, allocations: 131.4 kB / 434.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007256/0.308, allocations: 230.4 kB / 434.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002882/0.3083, allocations: 183.4 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.3084, allocations: 25.72 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.3085, allocations: 75.7 kB / 434.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.3087, allocations: 79.67 kB / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.3087, allocations: 12 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.3089, allocations: 75.88 kB / 435.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.309, allocations: 55.77 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.473e-05/0.3091, allocations: 55.61 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004076/0.3095, allocations: 252.6 kB / 435.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3095, allocations: 0 / 435.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3095, allocations: 4 kB / 435.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.3095, allocations: 0 / 435.4 MB, free: 2.289 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008065/0.3103, allocations: 481.2 kB / 435.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.879e-05/0.3103, allocations: 8.031 kB / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.026e-05/0.3104, allocations: 38.75 kB / 435.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.533e-05/0.3105, allocations: 24.78 kB / 436 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004843/0.3109, allocations: 233.5 kB / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.311, allocations: 4.375 kB / 436.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.031e-05/0.311, allocations: 15.94 kB / 436.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000393/0.3114, allocations: 172.4 kB / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3114, allocations: 0 / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.3114, allocations: 0 / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.3114, allocations: 4 kB / 436.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.3115, allocations: 43.91 kB / 436.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005532/0.3121, allocations: 341.5 kB / 436.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.3124, allocations: 119.9 kB / 436.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.276e-05/0.3125, allocations: 46.5 kB / 436.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.3125, allocations: 0 / 436.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001898/0.3127, allocations: 87.31 kB / 437 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.3127, allocations: 0 / 437 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004139/0.3131, allocations: 161.4 kB / 437.2 MB, free: 352 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.141e-05/0.3132, allocations: 136.8 kB / 437.3 MB, free: 184 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/0.3136, allocations: 341.8 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.3136, allocations: 33.64 kB / 437.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.3137, allocations: 132.1 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.3137, allocations: 15.91 kB / 437.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.3138, allocations: 33.7 kB / 437.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3139, allocations: 330.8 kB / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.402e-05/0.314, allocations: 23.98 kB / 438.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.3142, allocations: 133.4 kB / 438.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.3143, allocations: 100.2 kB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3143, allocations: 0 / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002414/0.3146, allocations: 121.5 kB / 438.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3146, allocations: 4 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3146, allocations: 0 / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.3146, allocations: 4 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.3147, allocations: 28.05 kB / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.3147, allocations: 0 / 438.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.813e-05/0.3148, allocations: 15.92 kB / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.3148, allocations: 4 kB / 438.6 MB, free: 14.8 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.0001544/0.315, allocations: 157.8 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.63e-05/0.3151, allocations: 77.42 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002828/0.3154, allocations: 123.3 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.3154, allocations: 7.938 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3154, allocations: 8.312 kB / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.3154, allocations: 3.938 kB / 438.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002362/0.3156, allocations: 204.8 kB / 439.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3156, allocations: 4 kB / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.871e-05/0.3157, allocations: 12 kB / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3157, allocations: 0 / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.3157, allocations: 3.984 kB / 439.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.3157, allocations: 4 kB / 439.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3157, allocations: 0 / 439.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.316, allocations: 174.5 kB / 439.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.774e-05/0.3161, allocations: 39.84 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.3161, allocations: 7.984 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.477e-05/0.3162, allocations: 4 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.3162, allocations: 15.92 kB / 439.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.3163, allocations: 4 kB / 439.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002569/0.3165, allocations: 249.3 kB / 439.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3165, allocations: 3.938 kB / 439.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002604/0.3168, allocations: 35.94 kB / 439.7 MB, free: 13.59 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.002161/0.3189, allocations: 1.057 MB / 440.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002731/0.3192, allocations: 83.89 kB / 440.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3192, allocations: 0 / 440.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.695e-05/0.3193, allocations: 27.98 kB / 440.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/0.3197, allocations: 67.38 kB / 440.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002901/0.3226, allocations: 2.232 MB / 443.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001494/0.3228, allocations: 135.8 kB / 443.3 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.879e-05/0.3229, allocations: 25.62 kB / 443.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.323, allocations: 67.41 kB / 443.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.323, allocations: 0 / 443.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03618/0.3592, allocations: 6.138 MB / 449.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.08, allocations: 19.84 kB / 449.5 MB, free: 3.844 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79104e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.843260219000513]