Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8621/0.8621, allocations: 173.4 MB / 200.5 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.531e-05/3.736e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002848/0.002885, allocations: 1.847 MB / 320.3 MB, free: 4.523 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.004511, allocations: 1.083 MB / 321.4 MB, free: 3.434 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001245/0.004636, allocations: 7.938 kB / 321.4 MB, free: 3.426 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002676/0.004903, allocations: 67.59 kB / 321.4 MB, free: 3.359 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002728/0.005176, allocations: 95.52 kB / 321.5 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005387/0.005715, allocations: 272.5 kB / 321.8 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001933/0.005908, allocations: 171.5 kB / 322 MB, free: 2.836 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.226e-05/0.006, allocations: 21.78 kB / 322 MB, free: 2.812 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.006108, allocations: 99.66 kB / 322.1 MB, free: 2.715 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.267e-05/0.0062, allocations: 67.86 kB / 322.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.006217, allocations: 8 kB / 322.2 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.006336, allocations: 71.88 kB / 322.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.817e-05/0.006394, allocations: 55.77 kB / 322.3 MB, free: 2.516 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.463e-05/0.006439, allocations: 39.86 kB / 322.3 MB, free: 2.477 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002469/0.006686, allocations: 239.1 kB / 322.5 MB, free: 2.242 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.006688, allocations: 0 / 322.5 MB, free: 2.242 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.006689, allocations: 4 kB / 322.6 MB, free: 2.238 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.006693, allocations: 0 / 322.6 MB, free: 2.238 MB / 282.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.0005743/0.007268, allocations: 474.6 kB / 323 MB, free: 1.738 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.007308, allocations: 8.922 kB / 323 MB, free: 1.73 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.3e-05/0.007341, allocations: 38.75 kB / 323.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.591e-05/0.007387, allocations: 24.75 kB / 323.1 MB, free: 1.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.007693, allocations: 220.8 kB / 323.3 MB, free: 1.414 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.007708, allocations: 12.38 kB / 323.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.00772, allocations: 4.375 kB / 323.3 MB, free: 1.398 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004262/0.008146, allocations: 176.7 kB / 323.5 MB, free: 1.195 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.008156, allocations: 0 / 323.5 MB, free: 1.195 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.00817, allocations: 8 kB / 323.5 MB, free: 1.188 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.008175, allocations: 0 / 323.5 MB, free: 1.188 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.567e-05/0.008271, allocations: 39.91 kB / 323.5 MB, free: 1.148 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003885/0.008659, allocations: 341.5 kB / 323.9 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.008806, allocations: 119.9 kB / 324 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.658e-05/0.008863, allocations: 46.5 kB / 324 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.008879, allocations: 0 / 324 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000116/0.008995, allocations: 79.38 kB / 324.1 MB, free: 488 kB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.008996, allocations: 0 / 324.1 MB, free: 488 kB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002472/0.009243, allocations: 161.4 kB / 324.3 MB, free: 320 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.94e-05/0.009303, allocations: 140.7 kB / 324.4 MB, free: 148 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.009532, allocations: 326 kB / 324.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.009546, allocations: 29.7 kB / 324.8 MB, free: 15.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.296e-05/0.009609, allocations: 132.1 kB / 324.9 MB, free: 15.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.009626, allocations: 19.81 kB / 324.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.00966, allocations: 25.7 kB / 324.9 MB, free: 15.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.405e-05/0.009744, allocations: 330.8 kB / 325.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.829e-05/0.009783, allocations: 27.92 kB / 325.3 MB, free: 15.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.472e-05/0.009857, allocations: 114.8 kB / 325.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.812e-05/0.009935, allocations: 65.92 kB / 325.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.009937, allocations: 0 / 325.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001144/0.01005, allocations: 109.5 kB / 325.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.01006, allocations: 4 kB / 325.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.01007, allocations: 0 / 325.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.01008, allocations: 4 kB / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.853e-05/0.01014, allocations: 11.98 kB / 325.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.01014, allocations: 0 / 325.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.128e-05/0.01018, allocations: 15.88 kB / 325.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.01019, allocations: 4 kB / 325.6 MB, free: 14.88 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.184e-05/0.01028, allocations: 159.6 kB / 325.8 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.01033, allocations: 65.5 kB / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.01049, allocations: 127.6 kB / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.01049, allocations: 4 kB / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.01049, allocations: 0 / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.0105, allocations: 0 / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.01063, allocations: 204.6 kB / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.01063, allocations: 0 / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.899e-05/0.01067, allocations: 19.98 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.01067, allocations: 4 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.01068, allocations: 0 / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.01068, allocations: 4 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.01068, allocations: 0 / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002318/0.01091, allocations: 178.5 kB / 326.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.847e-05/0.01097, allocations: 39.77 kB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.01099, allocations: 8 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.721e-05/0.01103, allocations: 0 / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.655e-05/0.01107, allocations: 8.047 kB / 326.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/0.01108, allocations: 16 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000147/0.01123, allocations: 241.2 kB / 326.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01123, allocations: 4 kB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001692/0.0114, allocations: 28 kB / 326.7 MB, free: 13.71 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.0009847/0.01238, allocations: 1.052 MB / 327.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000146/0.01253, allocations: 59.97 kB / 327.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01253, allocations: 0 / 327.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.103e-05/0.01258, allocations: 39.98 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.01285, allocations: 64.48 kB / 327.9 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.01454, allocations: 2.152 MB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.84e-05/0.01463, allocations: 132.1 kB / 330.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.537e-05/0.0147, allocations: 29.62 kB / 330.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.789e-05/0.01476, allocations: 60.47 kB / 330.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01476, allocations: 0 / 330.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.03232, allocations: 6.113 MB / 336.4 MB, free: 4.117 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.111/7.143, allocations: 15.09 kB / 336.4 MB, free: 4.105 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.937459798529744]