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.001434/0.001434, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001774/0.001774, allocations: 211.9 kB / 23.73 MB, free: 4.164 MB / 14.72 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 1.484/1.484, allocations: 230.5 MB / 257.4 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 0.003035/0.003035, allocations: 63.89 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3414, allocations: 53.42 MB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003592/0.3449, allocations: 1.875 MB / 433 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.3472, allocations: 1.219 MB / 434.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3473, allocations: 4 kB / 434.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.3476, allocations: 67.59 kB / 434.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000374/0.348, allocations: 135.5 kB / 434.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006329/0.3486, allocations: 226.3 kB / 434.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002923/0.3489, allocations: 187.5 kB / 434.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.349, allocations: 17.73 kB / 434.8 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.3492, allocations: 87.56 kB / 434.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.3493, allocations: 79.67 kB / 435 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.3493, allocations: 12 kB / 435 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.3495, allocations: 67.95 kB / 435.1 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.3496, allocations: 55.77 kB / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.228e-05/0.3497, allocations: 59.55 kB / 435.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003696/0.3501, allocations: 248.6 kB / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3501, allocations: 0 / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3501, allocations: 0 / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.3501, allocations: 0 / 435.4 MB, free: 2.145 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.0007493/0.3508, allocations: 478.5 kB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3509, allocations: 15.98 kB / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.436e-05/0.3509, allocations: 42.69 kB / 436 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.351, allocations: 24.8 kB / 436 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004118/0.3514, allocations: 225.5 kB / 436.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.3514, allocations: 8.312 kB / 436.2 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.3514, allocations: 12.36 kB / 436.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004532/0.3519, allocations: 180.5 kB / 436.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.3519, allocations: 4 kB / 436.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.3519, allocations: 0 / 436.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.3519, allocations: 4 kB / 436.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.3521, allocations: 39.92 kB / 436.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007401/0.3528, allocations: 345.5 kB / 436.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.3532, allocations: 111.9 kB / 436.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.3534, allocations: 50.55 kB / 437 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.3534, allocations: 0 / 437 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.3536, allocations: 83.31 kB / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 2.044e-06/0.3536, allocations: 0 / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006006/0.3542, allocations: 157.4 kB / 437.2 MB, free: 200 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001707/0.3544, allocations: 136.5 kB / 437.3 MB, free: 32 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005835/0.355, allocations: 337.8 kB / 437.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.355, allocations: 33.7 kB / 437.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.3552, allocations: 128.3 kB / 437.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.301e-05/0.3552, allocations: 19.91 kB / 437.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.518e-05/0.3553, allocations: 37.64 kB / 437.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.3555, allocations: 334.8 kB / 438.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.3556, allocations: 23.98 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.3558, allocations: 137.3 kB / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.3561, allocations: 92.2 kB / 438.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3561, allocations: 0 / 438.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003842/0.3565, allocations: 133.4 kB / 438.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.3565, allocations: 4 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.3565, allocations: 4 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.3565, allocations: 0 / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.3567, allocations: 19.98 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.3567, allocations: 7.922 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.3568, allocations: 8.312 kB / 438.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.3568, allocations: 4 kB / 438.6 MB, free: 14.65 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.0002161/0.357, allocations: 166.6 kB / 438.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.3572, allocations: 77.44 kB / 438.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003963/0.3576, allocations: 119.4 kB / 439 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3576, allocations: 4 kB / 439 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3576, allocations: 0 / 439 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.3576, allocations: 3.984 kB / 439 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003132/0.3579, allocations: 208.7 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3579, allocations: 0 / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.358, allocations: 20 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.358, allocations: 0 / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.358, allocations: 3.984 kB / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.358, allocations: 4 kB / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.358, allocations: 0 / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004114/0.3585, allocations: 174.5 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.3586, allocations: 35.84 kB / 439.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.158e-05/0.3586, allocations: 7.938 kB / 439.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.167e-05/0.3587, allocations: 7.984 kB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.832e-05/0.3588, allocations: 11.98 kB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.3588, allocations: 8 kB / 439.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002603/0.359, allocations: 245.2 kB / 439.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.359, allocations: 4 kB / 439.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.3593, allocations: 39.86 kB / 439.7 MB, free: 13.44 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.002753/0.3621, allocations: 1.042 MB / 440.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003354/0.3624, allocations: 83.84 kB / 440.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3624, allocations: 4.25 kB / 440.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.3626, allocations: 27.98 kB / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006018/0.3632, allocations: 67.92 kB / 441 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003846/0.367, allocations: 2.238 MB / 443.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001981/0.3672, allocations: 132.1 kB / 443.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000141/0.3673, allocations: 29.61 kB / 443.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.3675, allocations: 59.42 kB / 443.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3675, allocations: 0 / 443.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04456/0.4121, allocations: 6.119 MB / 449.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.41, allocations: 2.031 kB / 449.5 MB, free: 3.676 MB / 350.1 MB " [Timeout remaining time 648] (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/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_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: 14.111126828938723]