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.001302/0.001302, allocations: 109.5 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.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.001396/0.001396, allocations: 187.1 kB / 23.72 MB, free: 4.684 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.476/1.476, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.001552/0.001552, allocations: 47.92 kB / 370.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3187, allocations: 52.18 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003446/0.3222, allocations: 1.95 MB / 424.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002023/0.3242, allocations: 1.184 MB / 425.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.3243, allocations: 7.938 kB / 425.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003115/0.3246, allocations: 67.66 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002685/0.3249, allocations: 99.58 kB / 425.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000753/0.3256, allocations: 258 kB / 426.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002869/0.3259, allocations: 183.5 kB / 426.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.326, allocations: 25.73 kB / 426.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.3262, allocations: 83.62 kB / 426.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.3263, allocations: 87.61 kB / 426.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.3264, allocations: 12 kB / 426.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002011/0.3266, allocations: 79.88 kB / 426.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.515e-05/0.3267, allocations: 51.83 kB / 426.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.3268, allocations: 83.41 kB / 426.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004231/0.3272, allocations: 243.3 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.3272, allocations: 4 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3272, allocations: 0 / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.964e-06/0.3272, allocations: 0 / 427 MB, free: 10.23 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.0008429/0.3281, allocations: 486.5 kB / 427.5 MB, free: 9.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.3281, allocations: 8.031 kB / 427.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.933e-05/0.3282, allocations: 38.75 kB / 427.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.86e-05/0.3283, allocations: 24.8 kB / 427.6 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005866/0.3288, allocations: 245.3 kB / 427.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.748e-05/0.3289, allocations: 8.375 kB / 427.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.228e-05/0.3289, allocations: 7.938 kB / 427.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005278/0.3294, allocations: 184.4 kB / 428 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.3294, allocations: 3.938 kB / 428 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.3295, allocations: 4 kB / 428 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3295, allocations: 4 kB / 428 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001335/0.3296, allocations: 35.98 kB / 428 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000728/0.3303, allocations: 366.3 kB / 428.4 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003772/0.3307, allocations: 138.5 kB / 428.5 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.3308, allocations: 59.34 kB / 428.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.704e-05/0.3309, allocations: 11.94 kB / 428.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002218/0.3311, allocations: 79.38 kB / 428.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.3311, allocations: 0 / 428.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005091/0.3316, allocations: 169.4 kB / 428.8 MB, free: 8.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.3317, allocations: 196.2 kB / 429 MB, free: 7.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004001/0.3321, allocations: 333.8 kB / 429.4 MB, free: 7.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.3322, allocations: 25.7 kB / 429.4 MB, free: 7.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.3323, allocations: 136.3 kB / 429.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.208e-05/0.3323, allocations: 23.91 kB / 429.5 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/0.3324, allocations: 37.7 kB / 429.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.3326, allocations: 330.8 kB / 429.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.452e-05/0.3326, allocations: 31.92 kB / 429.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.3328, allocations: 96.56 kB / 430 MB, free: 6.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.333, allocations: 105.9 kB / 430.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.333, allocations: 0 / 430.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002657/0.3332, allocations: 141.5 kB / 430.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3332, allocations: 4 kB / 430.3 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.3333, allocations: 11.97 kB / 430.3 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.3333, allocations: 0 / 430.3 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.3334, allocations: 23.94 kB / 430.3 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.3334, allocations: 3.984 kB / 430.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.105e-05/0.3335, allocations: 19.89 kB / 430.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.3335, allocations: 4 kB / 430.3 MB, free: 6.547 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.0001869/0.3337, allocations: 154.8 kB / 430.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3338, allocations: 77.48 kB / 430.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003253/0.3341, allocations: 127.5 kB / 430.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3341, allocations: 0 / 430.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3341, allocations: 4.062 kB / 430.7 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.491e-05/0.3342, allocations: 7.938 kB / 430.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003402/0.3345, allocations: 212.6 kB / 430.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3345, allocations: 0 / 430.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.956e-05/0.3346, allocations: 20.09 kB / 430.9 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.3346, allocations: 3.984 kB / 430.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.3346, allocations: 4 kB / 430.9 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.3346, allocations: 3.938 kB / 430.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3346, allocations: 4 kB / 430.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003307/0.335, allocations: 187.4 kB / 431.1 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.974e-05/0.3351, allocations: 39.83 kB / 431.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.3351, allocations: 4 kB / 431.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.855e-05/0.3352, allocations: 4 kB / 431.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.165e-05/0.3352, allocations: 15.92 kB / 431.2 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.3352, allocations: 7.938 kB / 431.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002781/0.3355, allocations: 245.2 kB / 431.4 MB, free: 5.352 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3355, allocations: 3.938 kB / 431.4 MB, free: 5.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003511/0.3359, allocations: 35.94 kB / 431.5 MB, free: 5.312 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 (11): * Single equations (assignments): 9 * 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.002107/0.338, allocations: 1.043 MB / 432.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002826/0.3383, allocations: 83.89 kB / 432.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3383, allocations: 3.938 kB / 432.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.59e-05/0.3383, allocations: 31.92 kB / 432.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004597/0.3388, allocations: 68.92 kB / 432.7 MB, free: 4.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002941/0.3417, allocations: 2.28 MB / 435 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/0.3422, allocations: 0.7591 MB / 435.7 MB, free: 1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.713e-05/0.3423, allocations: 29.88 kB / 435.8 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.3424, allocations: 63.41 kB / 435.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3424, allocations: 0 / 435.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03482/0.3772, allocations: 5.776 MB / 441.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.42, allocations: 12.7 kB / 441.6 MB, free: 11.22 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.06496134400004]