Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001815/0.001815, allocations: 124.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.002037/0.002037, 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.445/1.445, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 47.94 kB / 373 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1067, allocations: 53.32 MB / 426.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003799/0.1105, allocations: 1.92 MB / 428.2 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002236/0.1127, allocations: 1.216 MB / 429.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.1128, allocations: 3.938 kB / 429.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007023/0.1135, allocations: 154 kB / 429.6 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004466/0.114, allocations: 163.4 kB / 429.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005027/0.1145, allocations: 159.5 kB / 429.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.1148, allocations: 191.4 kB / 430.1 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.115, allocations: 21.55 kB / 430.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.1151, allocations: 83.62 kB / 430.2 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.1152, allocations: 83.61 kB / 430.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.1153, allocations: 8 kB / 430.3 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.1154, allocations: 59.97 kB / 430.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.893e-05/0.1155, allocations: 43.83 kB / 430.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.701e-05/0.1156, allocations: 75.42 kB / 430.5 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003678/0.1159, allocations: 219 kB / 430.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1159, allocations: 0 / 430.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1159, allocations: 0 / 430.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.116, allocations: 0 / 430.7 MB, free: 0.5039 MB / 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.1954/0.3114, allocations: 0.5145 MB / 431.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3114, allocations: 8.906 kB / 431.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.58e-05/0.3115, allocations: 40.42 kB / 431.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.58e-05/0.3116, allocations: 23.95 kB / 431.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.3119, allocations: 267.5 kB / 431.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.3119, allocations: 8.656 kB / 431.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.3119, allocations: 6.438 kB / 431.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.3122, allocations: 147.5 kB / 431.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.3122, allocations: 4.969 kB / 431.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.059e-05/0.3123, allocations: 4.375 kB / 431.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.3123, allocations: 1.281 kB / 431.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.3124, allocations: 34.17 kB / 431.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004058/0.3128, allocations: 366.2 kB / 432.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.313, allocations: 107.1 kB / 432.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.3131, allocations: 46.11 kB / 432.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.3131, allocations: 7.938 kB / 432.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001384/0.3133, allocations: 71.12 kB / 432.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.3133, allocations: 0 / 432.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003443/0.3136, allocations: 140.8 kB / 432.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.3137, allocations: 135.3 kB / 432.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.3139, allocations: 276.4 kB / 432.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.314, allocations: 31.86 kB / 432.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.101e-05/0.314, allocations: 116.6 kB / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.411e-05/0.314, allocations: 21 kB / 433 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.3141, allocations: 27.59 kB / 433 MB, free: 10.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.3141, allocations: 333 kB / 433.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.01e-05/0.3142, allocations: 22.05 kB / 433.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.545e-05/0.3143, allocations: 71.09 kB / 433.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.3144, allocations: 73.33 kB / 433.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3144, allocations: 2.469 kB / 433.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001803/0.3146, allocations: 120.2 kB / 433.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.3146, allocations: 6.281 kB / 433.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3146, allocations: 1.406 kB / 433.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3146, allocations: 4.094 kB / 433.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.3147, allocations: 17.69 kB / 433.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.3147, allocations: 2.062 kB / 433.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.638e-05/0.3148, allocations: 8.578 kB / 433.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.3148, allocations: 3.625 kB / 433.7 MB, free: 9.648 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,sample1.u,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 8.909e-05/0.3149, allocations: 157.7 kB / 433.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.516e-05/0.315, allocations: 67.23 kB / 433.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.315, allocations: 23.36 kB / 433.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.315, allocations: 2.125 kB / 433.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.315, allocations: 0.6094 kB / 433.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.315, allocations: 7.578 kB / 433.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001231/0.3151, allocations: 227.8 kB / 434.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3151, allocations: 2.25 kB / 434.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.451e-05/0.3152, allocations: 4.312 kB / 434.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3152, allocations: 2.062 kB / 434.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.3152, allocations: 4.766 kB / 434.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3152, allocations: 4.281 kB / 434.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3152, allocations: 5.594 kB / 434.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002017/0.3154, allocations: 156.5 kB / 434.3 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.764e-05/0.3155, allocations: 114.2 kB / 434.5 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/0.3155, allocations: 6.75 kB / 434.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.003e-05/0.3156, allocations: 6.625 kB / 434.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-05/0.3156, allocations: 7.406 kB / 434.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.3156, allocations: 8.281 kB / 434.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.3157, allocations: 199.3 kB / 434.7 MB, free: 9 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3157, allocations: 0 / 434.7 MB, free: 9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002488/0.316, allocations: 31.23 kB / 434.7 MB, free: 9 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,sample1.u,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.001754/0.3178, allocations: 1 MB / 435.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002414/0.318, allocations: 68.89 kB / 435.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.318, allocations: 256 / 435.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.004e-05/0.3181, allocations: 29.41 kB / 435.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.3184, allocations: 66.88 kB / 435.9 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.3203, allocations: 1.951 MB / 437.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/0.3204, allocations: 0.7339 MB / 438.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.212e-05/0.3205, allocations: 21.97 kB / 438.6 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.06e-05/0.3206, allocations: 48.23 kB / 438.6 MB, free: 6.273 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3206, allocations: 0 / 438.6 MB, free: 6.273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03067/0.3513, allocations: 4.707 MB / 443.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.482/8.833, allocations: 1.188 kB / 443.3 MB, free: 5.461 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.519522749993484]