Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.001188/0.001188, allocations: 76.08 kB / 20.67 MB, free: 3.895 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.0008835/0.0008835, allocations: 149.1 kB / 23.93 MB, free: 0.6367 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.898/0.898, allocations: 173.4 MB / 200.4 MB, free: 9.441 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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.53e-05/2.721e-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.BackSample): time 0.002749/0.002777, allocations: 1.872 MB / 320.3 MB, free: 4.496 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.004176, allocations: 1.11 MB / 321.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.004294, allocations: 11.94 kB / 321.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002961/0.00459, allocations: 67.59 kB / 321.5 MB, free: 3.301 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002959/0.004886, allocations: 99.47 kB / 321.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005324/0.005418, allocations: 266 kB / 321.8 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000201/0.005619, allocations: 183.5 kB / 322 MB, free: 2.766 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.758e-05/0.005717, allocations: 29.78 kB / 322 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.005833, allocations: 103.7 kB / 322.1 MB, free: 2.633 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.423e-05/0.005927, allocations: 71.8 kB / 322.2 MB, free: 2.562 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.041e-05/0.005948, allocations: 8 kB / 322.2 MB, free: 2.555 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.006073, allocations: 71.88 kB / 322.3 MB, free: 2.484 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.399e-05/0.006137, allocations: 51.83 kB / 322.3 MB, free: 2.434 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.941e-05/0.006187, allocations: 47.78 kB / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002503/0.006437, allocations: 251.1 kB / 322.6 MB, free: 2.141 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.006439, allocations: 0 / 322.6 MB, free: 2.141 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.00644, allocations: 4 kB / 322.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.006444, allocations: 0 / 322.6 MB, free: 2.137 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005172/0.006961, allocations: 485.8 kB / 323.1 MB, free: 1.629 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.006994, allocations: 8.922 kB / 323.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.942e-05/0.007024, allocations: 38.75 kB / 323.2 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.007069, allocations: 28.8 kB / 323.2 MB, free: 1.547 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004406/0.007509, allocations: 232.7 kB / 323.4 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.007524, allocations: 12.38 kB / 323.4 MB, free: 1.277 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.007539, allocations: 12.38 kB / 323.4 MB, free: 1.266 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002937/0.007833, allocations: 196.8 kB / 323.6 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.007842, allocations: 3.938 kB / 323.6 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.007852, allocations: 4 kB / 323.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.007857, allocations: 7.938 kB / 323.6 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.051e-05/0.007937, allocations: 47.89 kB / 323.7 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003716/0.008309, allocations: 346.4 kB / 324 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.008475, allocations: 138.5 kB / 324.2 MB, free: 428 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.051e-05/0.008535, allocations: 59.36 kB / 324.2 MB, free: 356 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.008555, allocations: 7.984 kB / 324.2 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001177/0.008673, allocations: 79.38 kB / 324.3 MB, free: 256 kB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.008674, allocations: 0 / 324.3 MB, free: 256 kB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002924/0.008966, allocations: 177.5 kB / 324.5 MB, free: 72 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.646e-05/0.009043, allocations: 166.2 kB / 324.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/0.009278, allocations: 341.8 kB / 325 MB, free: 15.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.009294, allocations: 29.7 kB / 325 MB, free: 15.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.418e-05/0.009358, allocations: 124.4 kB / 325.1 MB, free: 15.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/0.009378, allocations: 15.91 kB / 325.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/0.009415, allocations: 25.7 kB / 325.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.406e-05/0.009499, allocations: 338.8 kB / 325.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.04e-05/0.009539, allocations: 19.98 kB / 325.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.928e-05/0.009608, allocations: 123 kB / 325.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.006e-05/0.009688, allocations: 65.64 kB / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.00969, allocations: 0 / 325.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001168/0.009807, allocations: 101.5 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.009818, allocations: 4 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.009824, allocations: 8.297 kB / 325.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.009835, allocations: 0 / 325.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.383e-05/0.009899, allocations: 15.94 kB / 325.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.009907, allocations: 4 kB / 325.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.096e-05/0.009948, allocations: 16.03 kB / 325.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.009954, allocations: 4 kB / 325.9 MB, free: 14.59 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.882e-05/0.01005, allocations: 151.6 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.442e-05/0.01014, allocations: 81.44 kB / 326.1 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.01031, allocations: 135.4 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.01031, allocations: 0 / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.01031, allocations: 4 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.01032, allocations: 0 / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.01045, allocations: 212.7 kB / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01045, allocations: 3.938 kB / 326.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.481e-05/0.01049, allocations: 15.98 kB / 326.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.0105, allocations: 4 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.403e-06/0.0105, allocations: 0 / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.01051, allocations: 4 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01051, allocations: 0 / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.01067, allocations: 191.4 kB / 326.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.534e-05/0.01073, allocations: 39.8 kB / 326.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.01074, allocations: 4 kB / 326.7 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.471e-05/0.01079, allocations: 15.98 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.01083, allocations: 11.92 kB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.01084, allocations: 8 kB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001725/0.01102, allocations: 249.2 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01102, allocations: 0 / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001809/0.0112, allocations: 31.94 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.0009935/0.01219, allocations: 1.071 MB / 328.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.01233, allocations: 75.89 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.01234, allocations: 0 / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.8e-05/0.01238, allocations: 31.98 kB / 328.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.01265, allocations: 79.17 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.01448, allocations: 2.208 MB / 330.5 MB, free: 9.941 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.687e-05/0.01456, allocations: 132.6 kB / 330.6 MB, free: 9.793 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.811e-05/0.01462, allocations: 29.61 kB / 330.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.0147, allocations: 68.47 kB / 330.7 MB, free: 9.699 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.0147, allocations: 0 / 330.7 MB, free: 9.699 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01782/0.03251, allocations: 6.43 MB / 337.1 MB, free: 3.348 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.945/6.978, allocations: 10.89 kB / 337.1 MB, free: 3.34 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_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_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! Error: Could not read variable backSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable backSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.806014813482761]