Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001896/0.001896, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002306/0.002306, allocations: 207.3 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 230.5 MB / 257.4 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.88 kB / 377.7 MB, free: 2.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3114, allocations: 53.41 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003501/0.3149, allocations: 1.905 MB / 433 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.3171, allocations: 1.242 MB / 434.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.3173, allocations: 7.938 kB / 434.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003034/0.3176, allocations: 71.66 kB / 434.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003661/0.3179, allocations: 131.4 kB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006582/0.3186, allocations: 238.2 kB / 434.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002602/0.3188, allocations: 195.4 kB / 434.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.319, allocations: 27.48 kB / 434.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.3191, allocations: 83.62 kB / 435 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.3192, allocations: 87.61 kB / 435.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.3192, allocations: 8 kB / 435.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.3194, allocations: 75.94 kB / 435.2 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.69e-05/0.3195, allocations: 55.77 kB / 435.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.86e-05/0.3196, allocations: 59.55 kB / 435.3 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003643/0.3199, allocations: 254.9 kB / 435.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3199, allocations: 0 / 435.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3199, allocations: 0 / 435.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.3199, allocations: 4 kB / 435.6 MB, free: 2.031 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.0007605/0.3207, allocations: 0.4905 MB / 436 MB, free: 1.504 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.3207, allocations: 11.98 kB / 436.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.321e-05/0.3208, allocations: 38.75 kB / 436.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.501e-05/0.3208, allocations: 28.78 kB / 436.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004601/0.3213, allocations: 242.5 kB / 436.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.3213, allocations: 4.375 kB / 436.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.147e-05/0.3213, allocations: 12.38 kB / 436.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003988/0.3217, allocations: 197.4 kB / 436.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3217, allocations: 0 / 436.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.3218, allocations: 7.938 kB / 436.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.3218, allocations: 0 / 436.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.3219, allocations: 47.91 kB / 436.6 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005714/0.3225, allocations: 362.2 kB / 437 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.3227, allocations: 146.5 kB / 437.1 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.3228, allocations: 55.42 kB / 437.2 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.3229, allocations: 0 / 437.2 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.3231, allocations: 83.31 kB / 437.3 MB, free: 120 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.3231, allocations: 0 / 437.3 MB, free: 120 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004568/0.3235, allocations: 177.7 kB / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.3236, allocations: 174.1 kB / 437.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/0.324, allocations: 344.2 kB / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.324, allocations: 25.7 kB / 438 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.3241, allocations: 136.4 kB / 438.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.338e-05/0.3242, allocations: 11.91 kB / 438.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.097e-05/0.3242, allocations: 41.66 kB / 438.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.3244, allocations: 334.8 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.726e-05/0.3245, allocations: 27.98 kB / 438.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.3247, allocations: 151 kB / 438.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.3249, allocations: 110.2 kB / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3249, allocations: 0 / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002636/0.3252, allocations: 145.3 kB / 438.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3252, allocations: 8.188 kB / 438.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3252, allocations: 0 / 438.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.3253, allocations: 4 kB / 438.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3254, allocations: 23.98 kB / 438.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.3254, allocations: 7.938 kB / 438.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.181e-05/0.3255, allocations: 11.92 kB / 439 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.3255, allocations: 4 kB / 439 MB, free: 14.27 MB / 350.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.0001549/0.3256, allocations: 161.7 kB / 439.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.3258, allocations: 85.44 kB / 439.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.3261, allocations: 131.3 kB / 439.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3261, allocations: 0 / 439.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3261, allocations: 4 kB / 439.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3261, allocations: 0 / 439.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.3263, allocations: 212.7 kB / 439.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3263, allocations: 0 / 439.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.489e-05/0.3264, allocations: 16 kB / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3264, allocations: 0 / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.3264, allocations: 7.984 kB / 439.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3264, allocations: 4.094 kB / 439.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3264, allocations: 0 / 439.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003017/0.3267, allocations: 195.4 kB / 439.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.3268, allocations: 51.75 kB / 439.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.3269, allocations: 8 kB / 439.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.556e-05/0.3269, allocations: 4 kB / 439.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.593e-05/0.327, allocations: 11.98 kB / 439.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.327, allocations: 4 kB / 439.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002763/0.3273, allocations: 259 kB / 440.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3273, allocations: 0 / 440.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002745/0.3275, allocations: 43.88 kB / 440.1 MB, free: 13 MB / 350.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.002258/0.3298, allocations: 1.064 MB / 441.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003177/0.3301, allocations: 83.84 kB / 441.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3301, allocations: 0 / 441.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.332e-05/0.3302, allocations: 36.33 kB / 441.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.3307, allocations: 80.75 kB / 441.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/0.3337, allocations: 2.327 MB / 443.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001553/0.3338, allocations: 140.5 kB / 443.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.012e-05/0.3339, allocations: 29.62 kB / 443.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.334, allocations: 67.41 kB / 443.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.334, allocations: 0 / 443.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03416/0.3682, allocations: 6.457 MB / 450.4 MB, free: 2.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.34, allocations: 8.812 kB / 450.4 MB, free: 2.738 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! Error: Could not read variable backSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv. Warning: Get data of variable backSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.03098990302533]