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.000878/0.000878, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001002/0.001002, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.9056/0.9056, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.453e-06/1.453e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.166e-05/1.312e-05, allocations: 3.125 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002419/0.002432, allocations: 1.881 MB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.003679, allocations: 1.207 MB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.003787, allocations: 7.938 kB / 327.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002856/0.004073, allocations: 67.59 kB / 327.7 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002813/0.004354, allocations: 131.4 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004245/0.004778, allocations: 231.1 kB / 328 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.004958, allocations: 187.4 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.115e-05/0.005049, allocations: 21.73 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.005151, allocations: 107.7 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.457e-05/0.005235, allocations: 67.8 kB / 328.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.785e-05/0.005253, allocations: 8 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.005359, allocations: 67.94 kB / 328.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.444e-05/0.005423, allocations: 59.77 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.619e-05/0.00547, allocations: 39.86 kB / 328.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.005707, allocations: 247.2 kB / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.005709, allocations: 0 / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.00571, allocations: 0 / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.005714, allocations: 3.938 kB / 328.8 MB, free: 11.57 MB / 298.7 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.0005144/0.006229, allocations: 474.6 kB / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.006265, allocations: 11.98 kB / 329.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.909e-05/0.006294, allocations: 42.73 kB / 329.3 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.006333, allocations: 20.8 kB / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.006589, allocations: 244.6 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.006602, allocations: 384 / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.006614, allocations: 8.375 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002508/0.006864, allocations: 180.4 kB / 329.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.006872, allocations: 192 / 329.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.006883, allocations: 4.125 kB / 329.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.006887, allocations: 0 / 329.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.476e-05/0.006962, allocations: 47.91 kB / 329.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.007311, allocations: 341.6 kB / 330.2 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001486/0.00746, allocations: 119.8 kB / 330.3 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.147e-05/0.007511, allocations: 42.56 kB / 330.3 MB, free: 9.887 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.731e-05/0.007528, allocations: 4 kB / 330.3 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001174/0.007646, allocations: 83.31 kB / 330.4 MB, free: 9.789 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.007647, allocations: 0 / 330.4 MB, free: 9.789 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002548/0.007902, allocations: 161.4 kB / 330.6 MB, free: 9.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.007962, allocations: 136.5 kB / 330.7 MB, free: 9.461 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.008185, allocations: 337.8 kB / 331 MB, free: 9.121 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.008199, allocations: 29.69 kB / 331.1 MB, free: 9.086 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.568e-05/0.008265, allocations: 132.1 kB / 331.2 MB, free: 8.953 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.008283, allocations: 19.84 kB / 331.2 MB, free: 8.934 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.008317, allocations: 25.7 kB / 331.2 MB, free: 8.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.055e-05/0.008397, allocations: 330.8 kB / 331.6 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.821e-05/0.008436, allocations: 20 kB / 331.6 MB, free: 8.551 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.786e-05/0.008503, allocations: 119.1 kB / 331.7 MB, free: 8.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.673e-05/0.00858, allocations: 65.61 kB / 331.8 MB, free: 8.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.008582, allocations: 3.938 kB / 331.8 MB, free: 8.336 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001187/0.008701, allocations: 109.5 kB / 331.9 MB, free: 8.223 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.008711, allocations: 4 kB / 331.9 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.008715, allocations: 0 / 331.9 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.008726, allocations: 4 kB / 331.9 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.874e-05/0.008784, allocations: 15.92 kB / 331.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.008789, allocations: 160 / 331.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.511e-05/0.008824, allocations: 8.031 kB / 331.9 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.008831, allocations: 8.312 kB / 331.9 MB, free: 8.184 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 8.957e-05/0.008921, allocations: 157.8 kB / 332.1 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002927/0.009213, allocations: 69.48 kB / 332.1 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001587/0.009372, allocations: 123.4 kB / 332.2 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.009374, allocations: 0 / 332.2 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.009378, allocations: 0 / 332.2 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.009383, allocations: 7.984 kB / 332.3 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.009509, allocations: 208.6 kB / 332.5 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.00951, allocations: 4.062 kB / 332.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-05/0.009546, allocations: 12 kB / 332.5 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.009548, allocations: 0 / 332.5 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.009558, allocations: 15.92 kB / 332.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.009559, allocations: 0 / 332.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.009561, allocations: 4 kB / 332.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001528/0.009714, allocations: 170.5 kB / 332.7 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.009764, allocations: 39.78 kB / 332.7 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.009783, allocations: 4 kB / 332.7 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.186e-05/0.009814, allocations: 3.984 kB / 332.7 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.67e-05/0.009851, allocations: 15.98 kB / 332.7 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.009863, allocations: 4.094 kB / 332.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001486/0.01001, allocations: 253.1 kB / 333 MB, free: 7.031 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01001, allocations: 0 / 333 MB, free: 7.031 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001658/0.01018, allocations: 35.92 kB / 333 MB, free: 6.996 MB / 298.7 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.0009109/0.01109, allocations: 1.036 MB / 334 MB, free: 6.066 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001332/0.01122, allocations: 71.91 kB / 334.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01122, allocations: 0 / 334.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.535e-05/0.01127, allocations: 31.92 kB / 334.1 MB, free: 5.965 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.01151, allocations: 71.72 kB / 334.2 MB, free: 5.902 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.01303, allocations: 2.183 MB / 336.4 MB, free: 3.605 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.996e-05/0.01311, allocations: 136.2 kB / 336.5 MB, free: 3.453 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.978e-05/0.01316, allocations: 25.62 kB / 336.6 MB, free: 3.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.008e-05/0.01323, allocations: 64.47 kB / 336.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01323, allocations: 0 / 336.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.03018, allocations: 6.161 MB / 342.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.911/6.941, allocations: 11.27 kB / 342.8 MB, free: 13.23 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/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: 8.79982931818813]