Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008924/0.0008924, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001028/0.001028, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8823/0.8823, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.42e-05/1.571e-05, allocations: 2.281 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002591/0.002607, allocations: 1.882 MB / 326.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.004132, allocations: 1.226 MB / 327.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.004275, allocations: 7.938 kB / 327.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003294/0.004605, allocations: 63.61 kB / 327.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003662/0.004971, allocations: 131.4 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006339/0.005605, allocations: 238 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.005857, allocations: 179.5 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.005975, allocations: 17.8 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.006118, allocations: 107.7 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.006232, allocations: 75.78 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.006256, allocations: 8 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.006427, allocations: 71.89 kB / 328.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.326e-05/0.00651, allocations: 55.77 kB / 328.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.07e-05/0.006571, allocations: 43.84 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.006928, allocations: 251.1 kB / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.006932, allocations: 0 / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.006934, allocations: 0 / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.00694, allocations: 0 / 328.8 MB, free: 11.56 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.0006923/0.007632, allocations: 470.5 kB / 329.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.007686, allocations: 19.97 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.863e-05/0.007725, allocations: 34.75 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.206e-05/0.007797, allocations: 24.8 kB / 329.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000445/0.008242, allocations: 232.7 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.008259, allocations: 4.375 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.008274, allocations: 8.375 kB / 329.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003315/0.008605, allocations: 176.1 kB / 329.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.008615, allocations: 4.172 kB / 329.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.008627, allocations: 8.125 kB / 329.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.008632, allocations: 0 / 329.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.318e-05/0.008716, allocations: 43.91 kB / 329.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005248/0.00924, allocations: 341.6 kB / 330.2 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.00944, allocations: 123.8 kB / 330.3 MB, free: 9.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.576e-05/0.009496, allocations: 42.56 kB / 330.3 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.009521, allocations: 11.88 kB / 330.3 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001648/0.009685, allocations: 79.38 kB / 330.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.803e-06/0.009687, allocations: 0 / 330.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003193/0.01001, allocations: 161.4 kB / 330.6 MB, free: 9.613 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/0.01008, allocations: 140.4 kB / 330.7 MB, free: 9.445 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.01033, allocations: 337.9 kB / 331.1 MB, free: 9.105 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.01035, allocations: 29.7 kB / 331.1 MB, free: 9.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.968e-05/0.01042, allocations: 132 kB / 331.2 MB, free: 8.938 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.01044, allocations: 19.89 kB / 331.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.01048, allocations: 21.72 kB / 331.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.792e-05/0.01058, allocations: 334.8 kB / 331.6 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.355e-05/0.01062, allocations: 23.98 kB / 331.6 MB, free: 8.531 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.047e-05/0.0107, allocations: 115.1 kB / 331.7 MB, free: 8.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.657e-05/0.01079, allocations: 69.56 kB / 331.8 MB, free: 8.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.01079, allocations: 0 / 331.8 MB, free: 8.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001472/0.01094, allocations: 105.5 kB / 331.9 MB, free: 8.211 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.01095, allocations: 4 kB / 331.9 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.01096, allocations: 0 / 331.9 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.01097, allocations: 0 / 331.9 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.917e-05/0.01105, allocations: 15.94 kB / 331.9 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.01106, allocations: 4.141 kB / 331.9 MB, free: 8.188 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.841e-05/0.01111, allocations: 12.06 kB / 331.9 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.01112, allocations: 7.984 kB / 331.9 MB, free: 8.168 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.0001131/0.01123, allocations: 150.1 kB / 332.1 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.659e-05/0.0113, allocations: 69.48 kB / 332.1 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002173/0.01151, allocations: 127.5 kB / 332.3 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.01152, allocations: 4 kB / 332.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.066e-06/0.01153, allocations: 0 / 332.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.01153, allocations: 0 / 332.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.01169, allocations: 212.6 kB / 332.5 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.0117, allocations: 4 kB / 332.5 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.817e-05/0.01174, allocations: 19.92 kB / 332.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.01175, allocations: 0 / 332.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.01176, allocations: 4 kB / 332.5 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.01176, allocations: 0 / 332.5 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.01176, allocations: 0 / 332.5 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/0.01195, allocations: 178.4 kB / 332.7 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.934e-05/0.01201, allocations: 43.83 kB / 332.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.01203, allocations: 0 / 332.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.279e-05/0.01206, allocations: 8 kB / 332.7 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.01211, allocations: 11.98 kB / 332.7 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.01212, allocations: 4 kB / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001615/0.01229, allocations: 253.2 kB / 333 MB, free: 7.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01229, allocations: 0 / 333 MB, free: 7.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00019/0.01248, allocations: 31.94 kB / 333 MB, free: 6.988 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.001051/0.01353, allocations: 1.041 MB / 334.1 MB, free: 6.062 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001688/0.0137, allocations: 79.89 kB / 334.1 MB, free: 5.984 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.0137, allocations: 0 / 334.1 MB, free: 5.984 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.001e-05/0.01375, allocations: 31.92 kB / 334.2 MB, free: 5.953 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.01405, allocations: 65.67 kB / 334.2 MB, free: 5.887 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.01582, allocations: 2.183 MB / 336.4 MB, free: 3.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.258e-05/0.01592, allocations: 136.1 kB / 336.6 MB, free: 3.438 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.217e-05/0.016, allocations: 29.61 kB / 336.6 MB, free: 3.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.251e-05/0.01608, allocations: 60.48 kB / 336.6 MB, free: 3.352 MB / 298.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01608, allocations: 0 / 336.6 MB, free: 3.352 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.03763, allocations: 6.223 MB / 342.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.922/6.96, allocations: 4.062 kB / 342.9 MB, free: 13.17 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.736947936937213]