Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001328/0.001328, allocations: 116.7 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.001525/0.001525, allocations: 213.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.592/1.592, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 63.89 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.291, allocations: 53.41 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004251/0.2953, allocations: 1.921 MB / 433.1 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.2977, allocations: 1.293 MB / 434.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.2978, allocations: 7.938 kB / 434.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004527/0.2983, allocations: 71.66 kB / 434.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004392/0.2987, allocations: 131.4 kB / 434.6 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008463/0.2996, allocations: 226.9 kB / 434.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002851/0.2999, allocations: 187.4 kB / 435 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.3, allocations: 25.73 kB / 435 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.3001, allocations: 75.69 kB / 435.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001947/0.3003, allocations: 87.61 kB / 435.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.3003, allocations: 8 kB / 435.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.3005, allocations: 79.89 kB / 435.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.99e-05/0.3006, allocations: 47.83 kB / 435.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.911e-05/0.3007, allocations: 75.48 kB / 435.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004396/0.3011, allocations: 251.3 kB / 435.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3011, allocations: 0 / 435.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3011, allocations: 0 / 435.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.3011, allocations: 0 / 435.6 MB, free: 2.203 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008462/0.302, allocations: 482.5 kB / 436.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.302, allocations: 8.031 kB / 436.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.3021, allocations: 42.73 kB / 436.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.834e-05/0.3021, allocations: 24.78 kB / 436.2 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.3026, allocations: 233.5 kB / 436.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.3026, allocations: 384 / 436.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.3026, allocations: 20.31 kB / 436.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004156/0.303, allocations: 155.7 kB / 436.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.3031, allocations: 4 kB / 436.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.3031, allocations: 0 / 436.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3031, allocations: 4 kB / 436.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.3032, allocations: 35.92 kB / 436.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005939/0.3038, allocations: 357.4 kB / 437 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002529/0.304, allocations: 123.8 kB / 437.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.074e-05/0.3041, allocations: 46.5 kB / 437.1 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.3042, allocations: 4 kB / 437.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.3043, allocations: 75.38 kB / 437.2 MB, free: 436 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.3043, allocations: 0 / 437.2 MB, free: 436 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000443/0.3048, allocations: 157.4 kB / 437.4 MB, free: 272 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.3049, allocations: 162.2 kB / 437.5 MB, free: 72 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003834/0.3053, allocations: 333.9 kB / 437.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.3053, allocations: 25.95 kB / 437.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.3054, allocations: 140.1 kB / 438 MB, free: 15.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.091e-05/0.3055, allocations: 15.91 kB / 438 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.423e-05/0.3055, allocations: 25.7 kB / 438.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3057, allocations: 338.8 kB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.396e-05/0.3057, allocations: 19.98 kB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.3059, allocations: 86.84 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.306, allocations: 84.22 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.306, allocations: 3.938 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002861/0.3063, allocations: 129.5 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3063, allocations: 14.44 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3064, allocations: 3.984 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.3064, allocations: 320 / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.3065, allocations: 19.94 kB / 438.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.3065, allocations: 0 / 438.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.66e-05/0.3066, allocations: 15.92 kB / 438.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.3066, allocations: 8 kB / 438.8 MB, free: 14.76 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001519/0.3067, allocations: 155.3 kB / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.286e-05/0.3068, allocations: 73.44 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002675/0.3071, allocations: 119.4 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3071, allocations: 0 / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.503e-05/0.3071, allocations: 3.984 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.3071, allocations: 7.938 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002214/0.3073, allocations: 212.7 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3074, allocations: 0 / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.256e-05/0.3074, allocations: 16.05 kB / 439.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3074, allocations: 4 kB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.3074, allocations: 0 / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.3074, allocations: 4 kB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3074, allocations: 0 / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.3077, allocations: 170.5 kB / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.419e-05/0.3078, allocations: 39.84 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.3078, allocations: 3.984 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.3079, allocations: 8 kB / 439.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.308, allocations: 12.02 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.308, allocations: 8 kB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000251/0.3083, allocations: 249.2 kB / 439.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3083, allocations: 0 / 439.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.3085, allocations: 35.88 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (9): * Single equations (assignments): 7 * 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.002061/0.3106, allocations: 1.022 MB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.3108, allocations: 68.03 kB / 441 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.3108, allocations: 0 / 441 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.239e-05/0.3109, allocations: 27.98 kB / 441 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.3113, allocations: 73.14 kB / 441.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00287/0.3142, allocations: 2.238 MB / 443.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.3145, allocations: 0.7398 MB / 444 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.286e-05/0.3146, allocations: 29.45 kB / 444.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.3148, allocations: 59.42 kB / 444.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3148, allocations: 0 / 444.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03576/0.3505, allocations: 5.488 MB / 449.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.43, allocations: 4.062 kB / 449.6 MB, free: 3.836 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.161923601997842]