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.001342/0.001342, allocations: 114 kB / 20.43 MB, free: 1.457 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.001512/0.001512, allocations: 215.6 kB / 23.74 MB, free: 4.672 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.436/1.436, allocations: 230.5 MB / 257.4 MB, free: 7.984 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.001886/0.001886, allocations: 63.89 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2779, allocations: 53.41 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003725/0.2817, allocations: 1.948 MB / 433.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.284, allocations: 1.346 MB / 434.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.2842, allocations: 7.938 kB / 434.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003352/0.2845, allocations: 63.67 kB / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000404/0.2849, allocations: 143.4 kB / 434.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00071/0.2856, allocations: 231.3 kB / 434.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002772/0.2859, allocations: 187.5 kB / 435.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.286, allocations: 25.78 kB / 435.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.2862, allocations: 87.58 kB / 435.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.2863, allocations: 87.61 kB / 435.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.2863, allocations: 8 kB / 435.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.2865, allocations: 79.88 kB / 435.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.151e-05/0.2866, allocations: 59.75 kB / 435.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.232e-05/0.2867, allocations: 83.42 kB / 435.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003984/0.2871, allocations: 263.2 kB / 435.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2871, allocations: 0 / 435.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2871, allocations: 0 / 435.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.2871, allocations: 0 / 435.8 MB, free: 2.062 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.0008194/0.288, allocations: 490.4 kB / 436.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.288, allocations: 8.031 kB / 436.3 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.618e-05/0.2881, allocations: 42.73 kB / 436.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.533e-05/0.2881, allocations: 24.8 kB / 436.3 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004743/0.2886, allocations: 246.5 kB / 436.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.2886, allocations: 4.375 kB / 436.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.2886, allocations: 8.375 kB / 436.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004158/0.289, allocations: 184.5 kB / 436.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2891, allocations: 0 / 436.8 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.2891, allocations: 7.938 kB / 436.8 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.2891, allocations: 4 kB / 436.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001172/0.2892, allocations: 31.98 kB / 436.8 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000594/0.2898, allocations: 382.2 kB / 437.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002869/0.2901, allocations: 138.5 kB / 437.3 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.2902, allocations: 59.34 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.2902, allocations: 4 kB / 437.4 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001929/0.2904, allocations: 83.31 kB / 437.5 MB, free: 176 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.2904, allocations: 0 / 437.5 MB, free: 176 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.000438/0.2908, allocations: 169.4 kB / 437.6 MB, free: 0 / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.291, allocations: 192 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003938/0.2914, allocations: 348.2 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.2914, allocations: 30.08 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.2915, allocations: 132.4 kB / 438.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.2916, allocations: 23.83 kB / 438.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.084e-05/0.2916, allocations: 37.66 kB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2918, allocations: 334.8 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.452e-05/0.2919, allocations: 23.98 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.292, allocations: 112.1 kB / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.2922, allocations: 101.9 kB / 438.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.2922, allocations: 0 / 438.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002799/0.2925, allocations: 137.4 kB / 439.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.2925, allocations: 10.19 kB / 439.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-06/0.2925, allocations: 3.938 kB / 439.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.2925, allocations: 4 kB / 439.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.2926, allocations: 24.11 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.2926, allocations: 8 kB / 439.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.296e-05/0.2927, allocations: 8 kB / 439.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.2927, allocations: 7.984 kB / 439.1 MB, free: 14.36 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.0001587/0.2929, allocations: 162.1 kB / 439.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.293, allocations: 81.44 kB / 439.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002872/0.2933, allocations: 123.4 kB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2933, allocations: 4 kB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2933, allocations: 4 kB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.2933, allocations: 4.031 kB / 439.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002357/0.2935, allocations: 228.4 kB / 439.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2935, allocations: 0 / 439.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.47e-05/0.2936, allocations: 15.94 kB / 439.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.2936, allocations: 3.984 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.2936, allocations: 4 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2936, allocations: 3.938 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.2936, allocations: 4 kB / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003025/0.2939, allocations: 183.5 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.916e-05/0.294, allocations: 43.78 kB / 440 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.2941, allocations: 4 kB / 440 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.886e-05/0.2941, allocations: 4 kB / 440 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.742e-05/0.2942, allocations: 15.98 kB / 440 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.2942, allocations: 4 kB / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002614/0.2945, allocations: 251 kB / 440.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2945, allocations: 0 / 440.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002982/0.2948, allocations: 43.81 kB / 440.3 MB, free: 13.11 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 (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.002077/0.2969, allocations: 1.031 MB / 441.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002623/0.2971, allocations: 79.83 kB / 441.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2971, allocations: 4.312 kB / 441.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.494e-05/0.2972, allocations: 35.92 kB / 441.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004777/0.2977, allocations: 85.31 kB / 441.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.3005, allocations: 2.32 MB / 443.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.3009, allocations: 0.7437 MB / 444.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.3011, allocations: 33.64 kB / 444.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.3012, allocations: 67.41 kB / 444.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3012, allocations: 0 / 444.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.3354, allocations: 5.848 MB / 450.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.37, allocations: 8.906 kB / 450.5 MB, free: 2.859 MB / 350.1 MB " [Timeout remaining time 648] (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: 13.924676489001286]