Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007906/0.0007907, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.142/1.142, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001878/0.0001879, allocations: 8 kB / 307.7 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07264/0.07284, allocations: 51.53 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.001552/0.07442, allocations: 1.466 MB / 360.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008003/0.07523, allocations: 0.5844 MB / 361.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.398e-05/0.07531, allocations: 7.938 kB / 361.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.908e-05/0.07535, allocations: 7.922 kB / 361.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.07546, allocations: 7.938 kB / 361.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003397/0.07581, allocations: 99.53 kB / 361.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.07592, allocations: 83.77 kB / 361.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.757e-05/0.07601, allocations: 33.42 kB / 361.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.07612, allocations: 39.78 kB / 361.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.445e-05/0.07619, allocations: 47.7 kB / 361.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.421e-05/0.07621, allocations: 4 kB / 361.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.265e-05/0.07625, allocations: 4 kB / 361.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.186e-05/0.07629, allocations: 19.92 kB / 361.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.233e-05/0.07635, allocations: 73.38 kB / 361.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.07648, allocations: 103.6 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.07649, allocations: 0 / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.0765, allocations: 4 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.0765, allocations: 0 / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0003979/0.07691, allocations: 403.3 kB / 362.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.72e-05/0.07694, allocations: 8.031 kB / 362.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.07707, allocations: 28.73 kB / 362.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.07726, allocations: 221 kB / 362.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.07729, allocations: 12.38 kB / 362.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.07731, allocations: 8.375 kB / 362.5 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004113/0.07772, allocations: 282 kB / 362.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.07774, allocations: 0 / 362.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.07776, allocations: 4 kB / 362.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.07777, allocations: 0 / 362.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/0.0779, allocations: 55.91 kB / 362.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002801/0.07819, allocations: 306.4 kB / 363.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.07839, allocations: 147.7 kB / 363.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.07852, allocations: 78.78 kB / 363.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.07854, allocations: 0 / 363.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.07857, allocations: 38.56 kB / 363.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 9.22e-07/0.07857, allocations: 0 / 363.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003562/0.07893, allocations: 181.3 kB / 363.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.143e-05/0.07901, allocations: 122.7 kB / 363.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.07912, allocations: 154.2 kB / 363.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.07914, allocations: 25.7 kB / 363.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.331e-05/0.07919, allocations: 100 kB / 364 MB, free: 8.324 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.96e-05/0.07922, allocations: 24.16 kB / 364 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.792e-05/0.07925, allocations: 25.7 kB / 364 MB, free: 8.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.573e-05/0.07934, allocations: 322.8 kB / 364.3 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.258e-05/0.07941, allocations: 31.86 kB / 364.3 MB, free: 7.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.07953, allocations: 134.6 kB / 364.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/0.07972, allocations: 174.3 kB / 364.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.07973, allocations: 0 / 364.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000248/0.07999, allocations: 185.6 kB / 364.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.08001, allocations: 12.06 kB / 364.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.08002, allocations: 4 kB / 364.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.08003, allocations: 4 kB / 364.9 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.607e-05/0.08013, allocations: 35.91 kB / 364.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.08015, allocations: 7.938 kB / 364.9 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.44e-05/0.08023, allocations: 19.84 kB / 364.9 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.08024, allocations: 8 kB / 364.9 MB, free: 7.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($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 (21): * Single equations (assignments): 21 * 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 9.329e-05/0.08034, allocations: 147.9 kB / 365.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.08051, allocations: 117.5 kB / 365.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.748e-05/0.08056, allocations: 20.7 kB / 365.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.08056, allocations: 0 / 365.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.08057, allocations: 4 kB / 365.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.08058, allocations: 3.938 kB / 365.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.08075, allocations: 201.9 kB / 365.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.08076, allocations: 0 / 365.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.554e-05/0.08086, allocations: 27.92 kB / 365.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.08087, allocations: 4 kB / 365.4 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.08088, allocations: 4 kB / 365.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.08089, allocations: 7.938 kB / 365.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.0809, allocations: 7.984 kB / 365.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002457/0.08115, allocations: 249 kB / 365.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.387e-05/0.08123, allocations: 104.9 kB / 365.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.885e-05/0.08126, allocations: 7.984 kB / 365.8 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.757e-05/0.08134, allocations: 8 kB / 365.8 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.967e-05/0.08137, allocations: 7.938 kB / 365.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.08138, allocations: 7.938 kB / 365.8 MB, free: 6.211 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.591e-05/0.08145, allocations: 116.1 kB / 365.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08145, allocations: 3.938 kB / 365.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002478/0.08171, allocations: 20 kB / 366 MB, free: 6.074 MB / 302.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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * 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 (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 8.374e-05/0.08179, allocations: 107.6 kB / 366.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002001/0.082, allocations: 107.8 kB / 366.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.08201, allocations: 1.062 kB / 366.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.551e-05/0.08205, allocations: 12 kB / 366.2 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.08244, allocations: 79.98 kB / 366.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003787/0.08283, allocations: 319.7 kB / 366.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.08307, allocations: 0.7243 MB / 367.3 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.44e-05/0.08311, allocations: 13.42 kB / 367.3 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.623e-05/0.08315, allocations: 19.44 kB / 367.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.08316, allocations: 0 / 367.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of Templates: time 0.002844/0.086, allocations: 1.1 MB / 368.4 MB, free: 3.543 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches