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.001696/0.001696, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.002045/0.002045, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.537/1.537, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.0015/0.0015, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1139, allocations: 53.34 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003824/0.1177, allocations: 1.903 MB / 428.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.12, allocations: 1.297 MB / 429.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.1201, allocations: 7.938 kB / 429.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003296/0.1204, allocations: 67.67 kB / 429.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003748/0.1208, allocations: 135.4 kB / 429.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006358/0.1215, allocations: 226.8 kB / 429.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000258/0.1217, allocations: 179.5 kB / 430.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.1218, allocations: 17.56 kB / 430.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.1219, allocations: 87.61 kB / 430.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.1221, allocations: 79.61 kB / 430.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.1221, allocations: 16 kB / 430.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.1223, allocations: 67.97 kB / 430.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.879e-05/0.1224, allocations: 59.75 kB / 430.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.524e-05/0.1225, allocations: 75.42 kB / 430.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003921/0.1229, allocations: 239 kB / 430.7 MB, free: 344 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1229, allocations: 0 / 430.7 MB, free: 344 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1229, allocations: 0 / 430.7 MB, free: 344 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.1229, allocations: 4 kB / 430.7 MB, free: 340 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.2068/0.3297, allocations: 0.5403 MB / 431.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3298, allocations: 9.781 kB / 431.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.671e-05/0.3298, allocations: 41.19 kB / 431.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.302e-05/0.3299, allocations: 24.36 kB / 431.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000484/0.3303, allocations: 290.5 kB / 431.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.3304, allocations: 8.656 kB / 431.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.161e-05/0.3304, allocations: 5.031 kB / 431.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.3308, allocations: 161.8 kB / 431.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.3308, allocations: 3.938 kB / 431.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.3308, allocations: 5.047 kB / 431.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.3308, allocations: 2.031 kB / 431.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/0.3309, allocations: 37.91 kB / 431.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005099/0.3314, allocations: 387.7 kB / 432.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/0.3317, allocations: 117.1 kB / 432.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.524e-05/0.3318, allocations: 47.31 kB / 432.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.3318, allocations: 6.656 kB / 432.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.332, allocations: 78.16 kB / 432.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.422e-06/0.332, allocations: 0 / 432.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004563/0.3325, allocations: 160.2 kB / 432.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.3325, allocations: 160.8 kB / 432.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003636/0.3329, allocations: 333.5 kB / 433.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.3329, allocations: 31.8 kB / 433.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.526e-05/0.333, allocations: 129 kB / 433.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.333, allocations: 21.23 kB / 433.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.515e-05/0.3331, allocations: 30.66 kB / 433.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.468e-05/0.3331, allocations: 335.5 kB / 433.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.373e-05/0.3332, allocations: 26.28 kB / 433.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.3333, allocations: 88.47 kB / 433.8 MB, free: 9.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.3335, allocations: 85.19 kB / 433.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3335, allocations: 0 / 433.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002139/0.3337, allocations: 126.5 kB / 434 MB, free: 9.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3337, allocations: 5.906 kB / 434 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.3337, allocations: 6.406 kB / 434 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.3337, allocations: 0.875 kB / 434 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3338, allocations: 23.14 kB / 434 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.3339, allocations: 2.188 kB / 434 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.273e-05/0.3339, allocations: 6.406 kB / 434 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.334, allocations: 6.812 kB / 434 MB, free: 9.5 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.0001156/0.3341, allocations: 165.7 kB / 434.2 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.556e-05/0.3342, allocations: 72.27 kB / 434.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.061e-05/0.3342, allocations: 32.81 kB / 434.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.3342, allocations: 1.094 kB / 434.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3342, allocations: 1.125 kB / 434.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3342, allocations: 1.875 kB / 434.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.3344, allocations: 237.4 kB / 434.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3344, allocations: 1.5 kB / 434.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.412e-05/0.3345, allocations: 13.34 kB / 434.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3345, allocations: 5.156 kB / 434.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.3345, allocations: 4.875 kB / 434.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.3345, allocations: 5.438 kB / 434.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3345, allocations: 1.281 kB / 434.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.3347, allocations: 165.4 kB / 434.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.96e-05/0.3348, allocations: 117.8 kB / 434.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.3348, allocations: 11.06 kB / 434.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.58e-05/0.3349, allocations: 5.406 kB / 434.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.168e-05/0.335, allocations: 9.531 kB / 434.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.335, allocations: 3.75 kB / 434.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002077/0.3352, allocations: 248.6 kB / 435.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3352, allocations: 0 / 435.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000277/0.3355, allocations: 34.17 kB / 435.1 MB, free: 8.84 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.001853/0.3373, allocations: 1.029 MB / 436.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002771/0.3376, allocations: 75.39 kB / 436.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.3376, allocations: 5.594 kB / 436.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.229e-05/0.3377, allocations: 24.84 kB / 436.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.3382, allocations: 62.94 kB / 436.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.3405, allocations: 2.226 MB / 438.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001743/0.3407, allocations: 0.7437 MB / 439.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.858e-05/0.3408, allocations: 26.33 kB / 439.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.405e-05/0.3408, allocations: 61.75 kB / 439.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3408, allocations: 1.562 kB / 439.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02982/0.3707, allocations: 5.394 MB / 444.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.04/8.411, allocations: 5.406 kB / 444.8 MB, free: 5.07 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.100825772009557]