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.001649/0.001649, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002122/0.002122, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.001518/0.001518, allocations: 47.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3104, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004016/0.3145, allocations: 1.927 MB / 433.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002377/0.3168, allocations: 1.317 MB / 434.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.317, allocations: 7.938 kB / 434.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003738/0.3174, allocations: 67.66 kB / 434.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000383/0.3177, allocations: 135.4 kB / 434.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006681/0.3184, allocations: 230.9 kB / 434.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002957/0.3187, allocations: 179.5 kB / 435 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.3188, allocations: 25.73 kB / 435 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.319, allocations: 79.62 kB / 435.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.3191, allocations: 83.67 kB / 435.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.669e-05/0.3192, allocations: 8 kB / 435.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.3193, allocations: 79.83 kB / 435.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.889e-05/0.3194, allocations: 59.75 kB / 435.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.795e-05/0.3195, allocations: 75.48 kB / 435.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.3199, allocations: 251.3 kB / 435.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3199, allocations: 0 / 435.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3199, allocations: 0 / 435.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3199, allocations: 0 / 435.6 MB, free: 2.344 MB / 334.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.00083/0.3208, allocations: 474.5 kB / 436.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.3208, allocations: 8.031 kB / 436.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.566e-05/0.3209, allocations: 42.73 kB / 436.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.938e-05/0.3209, allocations: 28.8 kB / 436.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.3213, allocations: 233.4 kB / 436.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.3214, allocations: 8.375 kB / 436.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.297e-05/0.3214, allocations: 7.938 kB / 436.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003967/0.3218, allocations: 155.6 kB / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.3218, allocations: 0 / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3218, allocations: 0 / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3218, allocations: 0 / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.3219, allocations: 43.91 kB / 436.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005644/0.3225, allocations: 361.4 kB / 437 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.3228, allocations: 111.9 kB / 437.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.766e-05/0.3229, allocations: 50.5 kB / 437.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.3229, allocations: 0 / 437.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/0.323, allocations: 79.38 kB / 437.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.323, allocations: 0 / 437.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000398/0.3234, allocations: 157.8 kB / 437.3 MB, free: 428 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.3235, allocations: 162.2 kB / 437.5 MB, free: 228 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003728/0.3239, allocations: 337.8 kB / 437.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.324, allocations: 29.7 kB / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.3241, allocations: 132.1 kB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.3241, allocations: 15.91 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-05/0.3241, allocations: 29.7 kB / 438 MB, free: 15.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.3243, allocations: 338.8 kB / 438.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.267e-05/0.3244, allocations: 20 kB / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.3245, allocations: 86.84 kB / 438.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.3246, allocations: 88.16 kB / 438.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3246, allocations: 7.938 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002319/0.3249, allocations: 121.5 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.3249, allocations: 8 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3249, allocations: 0 / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3249, allocations: 0 / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.325, allocations: 24.06 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.325, allocations: 7.984 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.624e-05/0.3251, allocations: 19.81 kB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.3251, allocations: 4 kB / 438.8 MB, free: 14.9 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.0001568/0.3253, allocations: 153.8 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.253e-05/0.3254, allocations: 73.44 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000267/0.3256, allocations: 119.4 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3256, allocations: 4.031 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3256, allocations: 4 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3257, allocations: 7.875 kB / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.3259, allocations: 208.7 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3259, allocations: 192 / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.507e-05/0.326, allocations: 19.98 kB / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.326, allocations: 0 / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.326, allocations: 4 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.326, allocations: 4 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.326, allocations: 0 / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00029/0.3263, allocations: 170.5 kB / 439.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.081e-05/0.3264, allocations: 35.83 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/0.3264, allocations: 8 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.037e-05/0.3265, allocations: 0 / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.3265, allocations: 15.92 kB / 439.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.3265, allocations: 8 kB / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002516/0.3268, allocations: 249.2 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3268, allocations: 0 / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002695/0.327, allocations: 31.94 kB / 439.8 MB, free: 13.72 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.002034/0.3291, allocations: 1.023 MB / 440.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002503/0.3293, allocations: 75.91 kB / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3293, allocations: 0 / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.19e-05/0.3294, allocations: 23.98 kB / 441 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.3298, allocations: 77.53 kB / 441 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.3325, allocations: 2.226 MB / 443.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.3329, allocations: 0.7515 MB / 444 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.946e-05/0.333, allocations: 29.47 kB / 444 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.3331, allocations: 55.42 kB / 444.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3331, allocations: 0 / 444.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03327/0.3664, allocations: 5.546 MB / 449.6 MB, free: 3.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.7, allocations: 4.344 kB / 449.7 MB, free: 3.977 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.321205156997166]