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.001796/0.001796, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.002065/0.002065, allocations: 191.7 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.57/1.57, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001702/0.001702, allocations: 51.86 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2664, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003652/0.2701, allocations: 1.877 MB / 424.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002013/0.2721, allocations: 1.103 MB / 425.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.2722, allocations: 7.938 kB / 425.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003445/0.2726, allocations: 71.59 kB / 425.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002943/0.2729, allocations: 95.53 kB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007362/0.2736, allocations: 274.5 kB / 426 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.2739, allocations: 171.5 kB / 426.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.274, allocations: 31.41 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.2741, allocations: 79.64 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.2743, allocations: 83.61 kB / 426.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.2743, allocations: 8 kB / 426.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.2745, allocations: 71.94 kB / 426.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.2746, allocations: 59.7 kB / 426.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.096e-05/0.2747, allocations: 63.55 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004271/0.2751, allocations: 254.9 kB / 426.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2751, allocations: 0 / 426.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.2751, allocations: 0 / 426.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.2751, allocations: 3.938 kB / 426.8 MB, free: 10.15 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009091/0.276, allocations: 482.5 kB / 427.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.2761, allocations: 8.031 kB / 427.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.808e-05/0.2762, allocations: 46.67 kB / 427.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.255e-05/0.2762, allocations: 24.8 kB / 427.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005285/0.2767, allocations: 229.5 kB / 427.6 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.2768, allocations: 8.375 kB / 427.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/0.2768, allocations: 15.92 kB / 427.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004299/0.2772, allocations: 204.7 kB / 427.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.2772, allocations: 0 / 427.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.2773, allocations: 4 kB / 427.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2773, allocations: 4 kB / 427.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.2774, allocations: 47.91 kB / 427.8 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005739/0.278, allocations: 358.3 kB / 428.2 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.2783, allocations: 138.5 kB / 428.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.2784, allocations: 55.42 kB / 428.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.2784, allocations: 4 kB / 428.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/0.2786, allocations: 83.31 kB / 428.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.643e-06/0.2786, allocations: 4 kB / 428.5 MB, free: 8.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004296/0.279, allocations: 173.6 kB / 428.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.2791, allocations: 166.2 kB / 428.8 MB, free: 7.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003728/0.2795, allocations: 337.8 kB / 429.1 MB, free: 7.551 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.2795, allocations: 33.64 kB / 429.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.2796, allocations: 124.4 kB / 429.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.158e-05/0.2797, allocations: 23.83 kB / 429.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.77e-05/0.2797, allocations: 38.08 kB / 429.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.2799, allocations: 338.8 kB / 429.7 MB, free: 6.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-05/0.28, allocations: 27.98 kB / 429.7 MB, free: 6.949 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.2802, allocations: 143.1 kB / 429.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.2803, allocations: 105.9 kB / 430 MB, free: 6.645 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2803, allocations: 0 / 430 MB, free: 6.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002643/0.2806, allocations: 145.4 kB / 430.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2806, allocations: 8 kB / 430.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2806, allocations: 0 / 430.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.2806, allocations: 4 kB / 430.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.2808, allocations: 19.98 kB / 430.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.966e-06/0.2808, allocations: 7.938 kB / 430.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.148e-05/0.2809, allocations: 15.89 kB / 430.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.2809, allocations: 8.188 kB / 430.2 MB, free: 6.434 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.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 (13): * Single equations (assignments): 13 * 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.0001562/0.281, allocations: 158.6 kB / 430.3 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.2811, allocations: 77.48 kB / 430.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002778/0.2814, allocations: 119.4 kB / 430.5 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.2814, allocations: 4 kB / 430.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.2814, allocations: 3.984 kB / 430.5 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2814, allocations: 11.88 kB / 430.5 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.2817, allocations: 204.8 kB / 430.7 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.2817, allocations: 8 kB / 430.7 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.532e-05/0.2817, allocations: 12 kB / 430.7 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.2817, allocations: 3.984 kB / 430.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.2818, allocations: 8.125 kB / 430.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2818, allocations: 0 / 430.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2818, allocations: 4 kB / 430.8 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002963/0.2821, allocations: 195.3 kB / 431 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.796e-05/0.2822, allocations: 43.83 kB / 431 MB, free: 5.504 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/0.2822, allocations: 4 kB / 431 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.918e-05/0.2823, allocations: 8 kB / 431 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.226e-05/0.2823, allocations: 15.91 kB / 431 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.2823, allocations: 15.98 kB / 431 MB, free: 5.461 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002526/0.2826, allocations: 241.2 kB / 431.3 MB, free: 5.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2826, allocations: 0 / 431.3 MB, free: 5.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.2829, allocations: 35.94 kB / 431.3 MB, free: 5.188 MB / 334.1 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.002163/0.285, allocations: 1.073 MB / 432.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002539/0.2853, allocations: 91.78 kB / 432.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2853, allocations: 0 / 432.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.792e-05/0.2854, allocations: 27.97 kB / 432.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.2858, allocations: 79.34 kB / 432.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002756/0.2886, allocations: 2.297 MB / 434.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.2887, allocations: 151.9 kB / 435 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.92e-05/0.2888, allocations: 29.77 kB / 435 MB, free: 1.441 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.2889, allocations: 63.42 kB / 435.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2889, allocations: 0 / 435.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03332/0.3222, allocations: 6.366 MB / 441.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.37, allocations: 17.31 kB / 441.5 MB, free: 11.08 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/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: 14.08874030597508]