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.001994/0.001994, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002006/0.002006, allocations: 213.6 kB / 23.73 MB, free: 4.16 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.431/1.431, allocations: 230.5 MB / 257.4 MB, free: 7.797 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.002339/0.002339, allocations: 63.91 kB / 377.7 MB, free: 2.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3176, allocations: 53.4 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004018/0.3217, allocations: 1.882 MB / 433 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.324, allocations: 1.214 MB / 434.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.3242, allocations: 3.938 kB / 434.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003422/0.3245, allocations: 67.67 kB / 434.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004926/0.325, allocations: 143.4 kB / 434.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008083/0.3258, allocations: 223.3 kB / 434.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003357/0.3261, allocations: 179.5 kB / 434.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.3263, allocations: 17.75 kB / 434.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.3264, allocations: 79.62 kB / 434.9 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.3266, allocations: 83.61 kB / 435 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.3266, allocations: 8 kB / 435 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.3268, allocations: 75.94 kB / 435.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.3269, allocations: 51.83 kB / 435.1 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.218e-05/0.327, allocations: 63.48 kB / 435.2 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000457/0.3275, allocations: 248.6 kB / 435.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3275, allocations: 3.938 kB / 435.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3275, allocations: 0 / 435.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.3275, allocations: 0 / 435.4 MB, free: 2.129 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.0008437/0.3283, allocations: 474.5 kB / 435.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.3284, allocations: 15.98 kB / 435.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.882e-05/0.3284, allocations: 38.73 kB / 436 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.871e-05/0.3285, allocations: 24.8 kB / 436 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004858/0.329, allocations: 233.5 kB / 436.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.329, allocations: 4.375 kB / 436.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.238e-05/0.329, allocations: 8.375 kB / 436.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003842/0.3294, allocations: 179.8 kB / 436.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3294, allocations: 7.938 kB / 436.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.3294, allocations: 3.984 kB / 436.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3294, allocations: 0 / 436.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.3295, allocations: 43.97 kB / 436.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006085/0.3302, allocations: 345.5 kB / 436.8 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002609/0.3304, allocations: 115.9 kB / 436.9 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.544e-05/0.3305, allocations: 42.56 kB / 436.9 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.3305, allocations: 4 kB / 436.9 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.3307, allocations: 79.31 kB / 437 MB, free: 356 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.442e-06/0.3307, allocations: 4 kB / 437 MB, free: 352 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004237/0.3312, allocations: 161.4 kB / 437.2 MB, free: 184 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.3313, allocations: 128.5 kB / 437.3 MB, free: 24 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004324/0.3317, allocations: 345.8 kB / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.3317, allocations: 29.7 kB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.3318, allocations: 128.1 kB / 437.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.3319, allocations: 15.89 kB / 437.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.805e-05/0.3319, allocations: 29.72 kB / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3321, allocations: 338.8 kB / 438.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.113e-05/0.3322, allocations: 28.17 kB / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.3323, allocations: 141.3 kB / 438.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.3325, allocations: 84.47 kB / 438.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3325, allocations: 0 / 438.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002708/0.3328, allocations: 133.4 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3328, allocations: 12.16 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3328, allocations: 0 / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3328, allocations: 0 / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.333, allocations: 19.98 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.333, allocations: 4 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.618e-05/0.333, allocations: 8 kB / 438.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.3331, allocations: 4 kB / 438.6 MB, free: 14.64 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.0001667/0.3332, allocations: 155.1 kB / 438.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.849e-05/0.3333, allocations: 73.44 kB / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003266/0.3336, allocations: 139.4 kB / 439 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.3336, allocations: 0 / 439 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.3337, allocations: 0 / 439 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3337, allocations: 4 kB / 439 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002427/0.3339, allocations: 204.6 kB / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3339, allocations: 0 / 439.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.218e-05/0.334, allocations: 15.98 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.334, allocations: 0 / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.334, allocations: 4 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.334, allocations: 0 / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.334, allocations: 4 kB / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003146/0.3343, allocations: 174.5 kB / 439.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.495e-05/0.3344, allocations: 43.83 kB / 439.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.3344, allocations: 8 kB / 439.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.302e-05/0.3345, allocations: 4 kB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.765e-05/0.3346, allocations: 11.98 kB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.3346, allocations: 4 kB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002834/0.3349, allocations: 253.2 kB / 439.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3349, allocations: 0 / 439.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002682/0.3352, allocations: 31.88 kB / 439.7 MB, free: 13.45 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 (10): * Single equations (assignments): 8 * 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.002154/0.3373, allocations: 1.055 MB / 440.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002507/0.3376, allocations: 75.89 kB / 440.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3376, allocations: 0 / 440.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.161e-05/0.3377, allocations: 31.92 kB / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.3381, allocations: 75.45 kB / 440.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.341, allocations: 2.249 MB / 443.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.3411, allocations: 131.9 kB / 443.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.941e-05/0.3412, allocations: 25.48 kB / 443.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.3413, allocations: 67.34 kB / 443.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3413, allocations: 0 / 443.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03455/0.3759, allocations: 6.044 MB / 449.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.46, allocations: 4.062 kB / 449.5 MB, free: 3.723 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.10167829412967]