Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.0007899/0.0007899, allocations: 88.05 kB / 20.67 MB, free: 3.871 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.001163/0.001163, allocations: 145.1 kB / 23.93 MB, free: 0.6172 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.8963/0.8963, allocations: 173.4 MB / 200.4 MB, free: 9.43 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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.714e-05/1.883e-05, allocations: 2.281 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003201/0.00322, allocations: 1.855 MB / 320.3 MB, free: 4.508 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.004898, allocations: 1.013 MB / 321.3 MB, free: 3.488 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.005026, allocations: 15.88 kB / 321.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006661/0.005692, allocations: 147.5 kB / 321.5 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003226/0.006015, allocations: 111.5 kB / 321.6 MB, free: 3.219 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005358/0.006551, allocations: 206.1 kB / 321.8 MB, free: 3.02 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002583/0.006809, allocations: 195.4 kB / 322 MB, free: 2.828 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.006919, allocations: 25.78 kB / 322 MB, free: 2.801 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.007074, allocations: 107.7 kB / 322.1 MB, free: 2.695 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.007194, allocations: 59.81 kB / 322.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.007222, allocations: 12 kB / 322.2 MB, free: 2.625 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001393/0.007362, allocations: 59.88 kB / 322.2 MB, free: 2.566 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.063e-05/0.007432, allocations: 39.86 kB / 322.3 MB, free: 2.527 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.295e-05/0.007495, allocations: 35.84 kB / 322.3 MB, free: 2.492 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003283/0.007823, allocations: 207.3 kB / 322.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.007827, allocations: 4 kB / 322.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.007828, allocations: 0 / 322.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.007833, allocations: 7.938 kB / 322.5 MB, free: 2.277 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.0006721/0.008505, allocations: 430.9 kB / 322.9 MB, free: 1.82 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.008545, allocations: 12.92 kB / 322.9 MB, free: 1.809 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.9e-05/0.008584, allocations: 42.72 kB / 323 MB, free: 1.758 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.008633, allocations: 16.84 kB / 323 MB, free: 1.742 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.008947, allocations: 212.7 kB / 323.2 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.008965, allocations: 8.375 kB / 323.2 MB, free: 1.496 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.008981, allocations: 4.375 kB / 323.2 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.009289, allocations: 146.2 kB / 323.4 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.009299, allocations: 0 / 323.4 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.009311, allocations: 4 kB / 323.4 MB, free: 1.324 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.009317, allocations: 0 / 323.4 MB, free: 1.324 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.009419, allocations: 39.92 kB / 323.4 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004536/0.009872, allocations: 321.5 kB / 323.7 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.01006, allocations: 111.9 kB / 323.8 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.923e-05/0.01013, allocations: 38.56 kB / 323.9 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.01015, allocations: 4 kB / 323.9 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001506/0.0103, allocations: 79.31 kB / 323.9 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.733e-06/0.0103, allocations: 0 / 323.9 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.000336/0.01064, allocations: 141.5 kB / 324.1 MB, free: 0.5 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.0107, allocations: 111 kB / 324.2 MB, free: 376 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/0.01096, allocations: 273.7 kB / 324.5 MB, free: 96 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.01098, allocations: 25.7 kB / 324.5 MB, free: 64 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.977e-05/0.01107, allocations: 116.1 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.01109, allocations: 15.89 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.679e-05/0.01114, allocations: 25.72 kB / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.01125, allocations: 326.8 kB / 325 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.539e-05/0.01131, allocations: 23.92 kB / 325 MB, free: 15.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.984e-05/0.01139, allocations: 68.27 kB / 325 MB, free: 15.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.973e-05/0.01149, allocations: 57.89 kB / 325.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.01149, allocations: 8.031 kB / 325.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001645/0.01165, allocations: 97.53 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.01167, allocations: 4 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.01167, allocations: 3.938 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.01169, allocations: 4 kB / 325.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.869e-05/0.01175, allocations: 15.94 kB / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.01176, allocations: 0 / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.183e-05/0.01181, allocations: 7.984 kB / 325.2 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.01182, allocations: 4 kB / 325.2 MB, free: 15.25 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,sample1.u) * 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.01193, allocations: 141.8 kB / 325.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.939e-05/0.01201, allocations: 61.55 kB / 325.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.01223, allocations: 127.6 kB / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.01224, allocations: 0 / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.01224, allocations: 0 / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.01225, allocations: 4 kB / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.01242, allocations: 184.6 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.01242, allocations: 0 / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.36e-05/0.01246, allocations: 8 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.01246, allocations: 64 / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.01247, allocations: 12 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.01247, allocations: 7.922 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01248, allocations: 0 / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.0127, allocations: 158.6 kB / 325.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.969e-05/0.01277, allocations: 31.84 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.0128, allocations: 7.984 kB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.687e-05/0.01286, allocations: 4 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.839e-05/0.0129, allocations: 11.97 kB / 326 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.01291, allocations: 8.062 kB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001872/0.0131, allocations: 197.2 kB / 326.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.0131, allocations: 0 / 326.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000277/0.01338, allocations: 31.94 kB / 326.2 MB, free: 14.19 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,sample1.u,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.001395/0.01477, allocations: 1.038 MB / 327.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000198/0.01497, allocations: 59.91 kB / 327.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.01497, allocations: 0 / 327.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.957e-05/0.01504, allocations: 31.92 kB / 327.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003803/0.01542, allocations: 71.56 kB / 327.4 MB, free: 13.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.01689, allocations: 1.879 MB / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.233e-05/0.01697, allocations: 111.4 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.092e-05/0.01702, allocations: 25.81 kB / 329.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.374e-05/0.01708, allocations: 52.48 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01708, allocations: 0 / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.03432, allocations: 5.428 MB / 334.9 MB, free: 5.598 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.051/7.085, allocations: 0 / 334.9 MB, free: 5.598 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79247e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.869558626785874]