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.001276/0.001276, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001393/0.001393, allocations: 214.6 kB / 20.75 MB, free: 2.328 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.412/1.412, allocations: 230.4 MB / 254 MB, free: 15.04 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.001851/0.001851, allocations: 63.89 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1045, allocations: 53.37 MB / 426.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003327/0.1078, allocations: 1.902 MB / 428.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.1099, allocations: 1.305 MB / 429.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.1101, allocations: 7.938 kB / 429.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003195/0.1104, allocations: 63.67 kB / 429.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000371/0.1107, allocations: 139.4 kB / 429.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006512/0.1114, allocations: 222.2 kB / 430 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.1117, allocations: 179.5 kB / 430.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.1118, allocations: 17.55 kB / 430.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.1119, allocations: 83.62 kB / 430.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.112, allocations: 83.67 kB / 430.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.29e-05/0.112, allocations: 8 kB / 430.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001719/0.1122, allocations: 79.88 kB / 430.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.638e-05/0.1123, allocations: 51.78 kB / 430.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.726e-05/0.1124, allocations: 75.48 kB / 430.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003498/0.1127, allocations: 246.9 kB / 430.8 MB, free: 288 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1127, allocations: 0 / 430.8 MB, free: 288 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1127, allocations: 0 / 430.8 MB, free: 288 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.1127, allocations: 0 / 430.8 MB, free: 288 kB / 350.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.1924/0.3051, allocations: 0.5401 MB / 431.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.3052, allocations: 10.31 kB / 431.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.46e-05/0.3052, allocations: 40.25 kB / 431.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.606e-05/0.3053, allocations: 25.38 kB / 431.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003859/0.3057, allocations: 295.5 kB / 431.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.3057, allocations: 3.469 kB / 431.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.96e-05/0.3057, allocations: 8.781 kB / 431.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.3061, allocations: 159.6 kB / 431.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3061, allocations: 4.469 kB / 431.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.3061, allocations: 0.875 kB / 431.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3061, allocations: 2.469 kB / 431.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001223/0.3062, allocations: 36.05 kB / 431.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004572/0.3067, allocations: 386.4 kB / 432.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002388/0.3069, allocations: 114.2 kB / 432.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.952e-05/0.307, allocations: 51.31 kB / 432.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.307, allocations: 5.625 kB / 432.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.3072, allocations: 78.12 kB / 432.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.3072, allocations: 0.875 kB / 432.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003869/0.3076, allocations: 157.7 kB / 432.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.3076, allocations: 159.4 kB / 432.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.308, allocations: 335.8 kB / 433.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.308, allocations: 27.95 kB / 433.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.798e-05/0.308, allocations: 135.9 kB / 433.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.3081, allocations: 27.66 kB / 433.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.615e-05/0.3081, allocations: 29.88 kB / 433.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.969e-05/0.3082, allocations: 337.4 kB / 433.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.782e-05/0.3082, allocations: 23.11 kB / 433.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.719e-05/0.3083, allocations: 89.97 kB / 433.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.3085, allocations: 83.69 kB / 433.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3085, allocations: 0 / 433.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002006/0.3087, allocations: 128 kB / 434 MB, free: 9.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.3087, allocations: 6.625 kB / 434 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3087, allocations: 4.438 kB / 434 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.3087, allocations: 0 / 434 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.3088, allocations: 22.75 kB / 434.1 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.3088, allocations: 1.094 kB / 434.1 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.096e-05/0.3089, allocations: 6.938 kB / 434.1 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.3089, allocations: 6.047 kB / 434.1 MB, free: 9.434 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 9.689e-05/0.309, allocations: 154.9 kB / 434.2 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.104e-05/0.3091, allocations: 73.78 kB / 434.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.91e-05/0.3091, allocations: 29.31 kB / 434.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.3091, allocations: 4.812 kB / 434.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3091, allocations: 1.125 kB / 434.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.3091, allocations: 1.156 kB / 434.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.3093, allocations: 248.4 kB / 434.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3093, allocations: 0 / 434.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.235e-05/0.3093, allocations: 11.03 kB / 434.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.3093, allocations: 1.375 kB / 434.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.3094, allocations: 6.562 kB / 434.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3094, allocations: 3.094 kB / 434.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3094, allocations: 1.375 kB / 434.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.3096, allocations: 166.8 kB / 434.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.986e-05/0.3097, allocations: 112.9 kB / 434.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.361e-05/0.3097, allocations: 7.625 kB / 434.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.659e-05/0.3098, allocations: 13.25 kB / 434.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.3098, allocations: 9.031 kB / 434.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.3098, allocations: 3.25 kB / 434.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001996/0.31, allocations: 254.4 kB / 435.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.31, allocations: 0 / 435.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.3103, allocations: 33.5 kB / 435.2 MB, free: 8.777 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001779/0.3121, allocations: 1.017 MB / 436.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002129/0.3123, allocations: 72.41 kB / 436.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3123, allocations: 1.375 kB / 436.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.698e-05/0.3124, allocations: 27.41 kB / 436.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.3127, allocations: 66.06 kB / 436.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.3148, allocations: 2.239 MB / 438.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/0.315, allocations: 0.742 MB / 439.3 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.299e-05/0.3151, allocations: 26.34 kB / 439.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.891e-05/0.3152, allocations: 61.8 kB / 439.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3152, allocations: 0 / 439.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.3453, allocations: 5.39 MB / 444.8 MB, free: 4.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.768/8.113, allocations: 10.28 kB / 444.8 MB, free: 4.977 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.625630717957392]