Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.0008685/0.0008685, 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.0008814/0.0008814, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.8948/0.8948, allocations: 177 MB / 204.1 MB, free: 5.75 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.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.84e-05/2.013e-05, allocations: 3.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002547/0.002567, allocations: 1.959 MB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.004018, allocations: 1.282 MB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.004131, allocations: 7.938 kB / 327.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002681/0.004399, allocations: 71.58 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002989/0.004698, allocations: 143.2 kB / 328 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005219/0.00522, allocations: 281.9 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.005433, allocations: 227.3 kB / 328.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.005535, allocations: 28.58 kB / 328.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.005667, allocations: 131.6 kB / 328.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.005781, allocations: 91.75 kB / 328.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.005802, allocations: 15.94 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.005922, allocations: 79.88 kB / 328.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.105e-05/0.005983, allocations: 71.75 kB / 328.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.529e-05/0.006038, allocations: 59.78 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.006308, allocations: 299 kB / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.00631, allocations: 0 / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.006311, allocations: 0 / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.006315, allocations: 0 / 329.2 MB, free: 11.16 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005874/0.006902, allocations: 0.5139 MB / 329.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.006936, allocations: 15.98 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.694e-05/0.006973, allocations: 46.73 kB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.564e-05/0.007019, allocations: 28.75 kB / 329.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.007284, allocations: 257.7 kB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.007301, allocations: 24.22 kB / 330.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.007317, allocations: 12.38 kB / 330.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003985/0.007715, allocations: 345.4 kB / 330.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.007724, allocations: 192 / 330.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.007737, allocations: 8.125 kB / 330.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.007741, allocations: 0 / 330.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001122/0.007854, allocations: 79.89 kB / 330.5 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003684/0.008222, allocations: 361.5 kB / 330.9 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.008444, allocations: 191.9 kB / 331.1 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.76e-05/0.008542, allocations: 90.53 kB / 331.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.008564, allocations: 7.984 kB / 331.2 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001105/0.008675, allocations: 79.33 kB / 331.3 MB, free: 8.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.452e-06/0.008676, allocations: 0 / 331.3 MB, free: 8.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003531/0.009029, allocations: 265.3 kB / 331.5 MB, free: 8.664 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.009093, allocations: 140.7 kB / 331.7 MB, free: 8.496 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002372/0.00933, allocations: 360.1 kB / 332 MB, free: 8.133 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.009346, allocations: 33.7 kB / 332 MB, free: 8.094 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.624e-05/0.009412, allocations: 136.6 kB / 332.2 MB, free: 7.957 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.009433, allocations: 23.84 kB / 332.2 MB, free: 7.934 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.00948, allocations: 41.7 kB / 332.2 MB, free: 7.887 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.862e-05/0.009559, allocations: 334.8 kB / 332.6 MB, free: 7.551 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.682e-05/0.009605, allocations: 27.98 kB / 332.6 MB, free: 7.523 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.442e-05/0.00969, allocations: 157.1 kB / 332.7 MB, free: 7.336 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.009795, allocations: 113 kB / 332.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.009797, allocations: 0 / 332.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001553/0.009952, allocations: 157.3 kB / 333 MB, free: 7.047 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.009964, allocations: 7.281 kB / 333 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.009968, allocations: 8.312 kB / 333 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.009979, allocations: 0 / 333 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.136e-05/0.01004, allocations: 15.94 kB / 333 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.01005, allocations: 7.984 kB / 333 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.46e-05/0.01009, allocations: 20.03 kB / 333.1 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.0101, allocations: 4.312 kB / 333.1 MB, free: 6.988 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001045/0.0102, allocations: 169.8 kB / 333.2 MB, free: 6.812 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.01032, allocations: 141.4 kB / 333.4 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.0105, allocations: 135.5 kB / 333.5 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.0105, allocations: 0 / 333.5 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.0105, allocations: 4 kB / 333.5 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.01051, allocations: 0 / 333.5 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001405/0.01065, allocations: 216.6 kB / 333.7 MB, free: 6.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.01065, allocations: 4 kB / 333.7 MB, free: 6.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.327e-05/0.01072, allocations: 35.92 kB / 333.8 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.01072, allocations: 0 / 333.8 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.01074, allocations: 11.98 kB / 333.8 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.01074, allocations: 4 kB / 333.8 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01074, allocations: 0 / 333.8 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002247/0.01096, allocations: 254.2 kB / 334 MB, free: 5.945 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.426e-05/0.01103, allocations: 55.66 kB / 334.1 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.01105, allocations: 8 kB / 334.1 MB, free: 5.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.187e-05/0.01109, allocations: 7.984 kB / 334.1 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.692e-05/0.01113, allocations: 15.98 kB / 334.1 MB, free: 5.859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.01115, allocations: 4 kB / 334.1 MB, free: 5.855 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001602/0.01131, allocations: 259 kB / 334.4 MB, free: 5.602 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01131, allocations: 0 / 334.4 MB, free: 5.602 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001947/0.0115, allocations: 47.94 kB / 334.4 MB, free: 5.555 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.001115/0.01262, allocations: 1.226 MB / 335.6 MB, free: 4.441 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001863/0.0128, allocations: 123.8 kB / 335.8 MB, free: 4.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.0128, allocations: 0 / 335.8 MB, free: 4.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.747e-05/0.01285, allocations: 31.97 kB / 335.8 MB, free: 4.289 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.0132, allocations: 117.2 kB / 335.9 MB, free: 4.172 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001786/0.01498, allocations: 2.469 MB / 338.4 MB, free: 1.574 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.654e-05/0.01508, allocations: 165.8 kB / 338.5 MB, free: 1.387 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.748e-05/0.01514, allocations: 21.95 kB / 338.6 MB, free: 1.367 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.641e-05/0.01522, allocations: 84.45 kB / 338.6 MB, free: 1.285 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01522, allocations: 0 / 338.6 MB, free: 1.285 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01678/0.03201, allocations: 7.274 MB / 345.9 MB, free: 10.06 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.997/7.029, allocations: 12 kB / 345.9 MB, free: 10.05 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.70090750604868]