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.0008765/0.0008765, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001659/0.001659, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8952/0.8952, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 3.005e-06/3.005e-06, allocations: 3.984 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.962e-05/2.262e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002931/0.002954, allocations: 1.872 MB / 326.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.004595, allocations: 1.241 MB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.004722, allocations: 4 kB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.005023, allocations: 63.61 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003192/0.005342, allocations: 139.3 kB / 327.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005246/0.005866, allocations: 231.1 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003599/0.006226, allocations: 183.4 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.006341, allocations: 17.8 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.006461, allocations: 99.73 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.006563, allocations: 75.78 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.006583, allocations: 8 kB / 328.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.006722, allocations: 79.81 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.455e-05/0.006796, allocations: 51.83 kB / 328.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.101e-05/0.006847, allocations: 47.8 kB / 328.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002799/0.007127, allocations: 243.2 kB / 328.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.007132, allocations: 0 / 328.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.007133, allocations: 0 / 328.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.007139, allocations: 3.984 kB / 328.9 MB, free: 11.59 MB / 298.7 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.0005625/0.007702, allocations: 473.8 kB / 329.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.007742, allocations: 12.03 kB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.948e-05/0.007771, allocations: 38.69 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.007818, allocations: 24.8 kB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.008138, allocations: 232.8 kB / 329.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.008153, allocations: 4.375 kB / 329.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.008168, allocations: 8.375 kB / 329.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002809/0.008448, allocations: 176.7 kB / 329.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.008456, allocations: 0 / 329.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.008467, allocations: 7.938 kB / 329.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.008471, allocations: 0 / 329.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.275e-05/0.008554, allocations: 39.98 kB / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003922/0.008946, allocations: 349.4 kB / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/0.009108, allocations: 119.9 kB / 330.3 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.192e-05/0.00916, allocations: 42.56 kB / 330.4 MB, free: 9.918 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.00918, allocations: 4 kB / 330.4 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.009313, allocations: 83.31 kB / 330.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.009314, allocations: 0 / 330.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002634/0.009578, allocations: 161.4 kB / 330.6 MB, free: 9.656 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.009641, allocations: 136.5 kB / 330.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.009869, allocations: 333.9 kB / 331.1 MB, free: 9.152 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.009883, allocations: 29.7 kB / 331.1 MB, free: 9.117 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.279e-05/0.009946, allocations: 132.1 kB / 331.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.009967, allocations: 19.84 kB / 331.3 MB, free: 8.965 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.448e-05/0.01, allocations: 29.64 kB / 331.3 MB, free: 8.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.089e-05/0.01008, allocations: 334.8 kB / 331.6 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.738e-05/0.01013, allocations: 28.17 kB / 331.7 MB, free: 8.566 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.63e-05/0.0102, allocations: 122.8 kB / 331.8 MB, free: 8.422 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.755e-05/0.01027, allocations: 57.95 kB / 331.8 MB, free: 8.359 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01028, allocations: 0 / 331.8 MB, free: 8.359 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001167/0.01039, allocations: 109.5 kB / 331.9 MB, free: 8.246 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.0104, allocations: 8 kB / 331.9 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.01041, allocations: 0 / 331.9 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.01042, allocations: 0 / 331.9 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.118e-05/0.01049, allocations: 15.98 kB / 332 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.0105, allocations: 0 / 332 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.987e-05/0.01054, allocations: 12.06 kB / 332 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.01054, allocations: 0 / 332 MB, free: 8.211 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 9.656e-05/0.01064, allocations: 158.7 kB / 332.1 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.218e-05/0.01069, allocations: 61.56 kB / 332.2 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001737/0.01087, allocations: 127.4 kB / 332.3 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.676e-06/0.01087, allocations: 4 kB / 332.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.01088, allocations: 0 / 332.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.01088, allocations: 0 / 332.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.01102, allocations: 216.6 kB / 332.5 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.01102, allocations: 0 / 332.5 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.748e-05/0.01106, allocations: 19.98 kB / 332.5 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.01107, allocations: 0 / 332.5 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.01108, allocations: 4 kB / 332.6 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.01108, allocations: 0 / 332.6 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.01108, allocations: 0 / 332.6 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001501/0.01123, allocations: 174.5 kB / 332.7 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.01129, allocations: 39.84 kB / 332.8 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.01131, allocations: 0 / 332.8 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.426e-05/0.01134, allocations: 16.05 kB / 332.8 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.01138, allocations: 8.094 kB / 332.8 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.0114, allocations: 11.92 kB / 332.8 MB, free: 7.305 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001504/0.01155, allocations: 253.1 kB / 333 MB, free: 7.062 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01155, allocations: 0 / 333 MB, free: 7.062 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001807/0.01173, allocations: 35.92 kB / 333.1 MB, free: 7.027 MB / 298.7 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.001007/0.01274, allocations: 1.053 MB / 334.1 MB, free: 6.125 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001522/0.01289, allocations: 71.91 kB / 334.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.01289, allocations: 0 / 334.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.757e-05/0.01294, allocations: 27.98 kB / 334.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.01323, allocations: 75.45 kB / 334.3 MB, free: 5.953 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.01502, allocations: 2.176 MB / 336.5 MB, free: 3.668 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.13e-05/0.01511, allocations: 136.2 kB / 336.6 MB, free: 3.516 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.91e-05/0.01518, allocations: 25.62 kB / 336.6 MB, free: 3.492 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.804e-05/0.01526, allocations: 64.47 kB / 336.7 MB, free: 3.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.01526, allocations: 0 / 336.7 MB, free: 3.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0173/0.03256, allocations: 6.232 MB / 342.9 MB, free: 13.26 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.208/7.24, allocations: 10.66 kB / 342.9 MB, free: 13.25 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/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: 9.04921342805028]