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.00132/0.00132, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 59.28 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1229, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003635/0.1266, allocations: 1.752 MB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.1277, allocations: 0.6077 MB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.1278, allocations: 7.938 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.451e-05/0.1279, allocations: 7.875 kB / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.128, allocations: 19.8 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000448/0.1285, allocations: 103.7 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001622/0.1287, allocations: 87.7 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.1288, allocations: 33.41 kB / 361.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.129, allocations: 55.78 kB / 361.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.828e-05/0.1291, allocations: 51.7 kB / 361.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.01e-05/0.1291, allocations: 4 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.142e-05/0.1292, allocations: 12 kB / 361.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.239e-05/0.1292, allocations: 23.91 kB / 361.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.401e-05/0.1293, allocations: 51.67 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.1295, allocations: 115.5 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1295, allocations: 0 / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1295, allocations: 0 / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1295, allocations: 0 / 361.8 MB, free: 10.41 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.0006738/0.1302, allocations: 426.9 kB / 362.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.1303, allocations: 8.031 kB / 362.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.1304, allocations: 28.73 kB / 362.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003769/0.1308, allocations: 225 kB / 362.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.609e-05/0.1309, allocations: 12.31 kB / 362.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.1309, allocations: 16.38 kB / 362.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005758/0.1315, allocations: 270.5 kB / 362.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1315, allocations: 0 / 362.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.1315, allocations: 4 kB / 362.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.1315, allocations: 0 / 362.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.1317, allocations: 51.91 kB / 362.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004141/0.1321, allocations: 310.4 kB / 363.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002942/0.1324, allocations: 139.8 kB / 363.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.1326, allocations: 74.64 kB / 363.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.1326, allocations: 4 kB / 363.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.1327, allocations: 42.55 kB / 363.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.242e-06/0.1327, allocations: 0 / 363.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004163/0.1331, allocations: 165.4 kB / 363.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.677e-05/0.1332, allocations: 122.8 kB / 363.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.1333, allocations: 162.2 kB / 363.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.1334, allocations: 25.7 kB / 363.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.001e-05/0.1334, allocations: 96.08 kB / 364 MB, free: 8.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.1335, allocations: 16.05 kB / 364 MB, free: 8.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.1335, allocations: 41.61 kB / 364 MB, free: 7.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1337, allocations: 326.8 kB / 364.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.628e-05/0.1337, allocations: 27.98 kB / 364.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.1339, allocations: 134.1 kB / 364.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.1341, allocations: 182.3 kB / 364.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1341, allocations: 0 / 364.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003057/0.1344, allocations: 185.7 kB / 364.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.1345, allocations: 8 kB / 364.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.1345, allocations: 4.375 kB / 364.9 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.1345, allocations: 4 kB / 364.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.1346, allocations: 31.92 kB / 364.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1347, allocations: 4 kB / 364.9 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.199e-05/0.1348, allocations: 23.78 kB / 364.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.1348, allocations: 12 kB / 364.9 MB, free: 6.918 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 0.0001912/0.135, allocations: 145.7 kB / 365.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.1352, allocations: 117.4 kB / 365.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.755e-05/0.1352, allocations: 20.72 kB / 365.2 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1352, allocations: 4 kB / 365.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.1353, allocations: 0 / 365.2 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.1353, allocations: 11.86 kB / 365.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002566/0.1355, allocations: 189.6 kB / 365.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1355, allocations: 0 / 365.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.1357, allocations: 31.92 kB / 365.4 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.1357, allocations: 4 kB / 365.4 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.1357, allocations: 3.984 kB / 365.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1357, allocations: 4 kB / 365.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1357, allocations: 4 kB / 365.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000324/0.136, allocations: 251.9 kB / 365.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.746e-05/0.1361, allocations: 104.9 kB / 365.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.1362, allocations: 4 kB / 365.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.1363, allocations: 8 kB / 365.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.1363, allocations: 3.938 kB / 365.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.1363, allocations: 11.98 kB / 365.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.605e-05/0.1364, allocations: 116.1 kB / 366 MB, free: 5.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1364, allocations: 0 / 366 MB, free: 5.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002804/0.1367, allocations: 24 kB / 366 MB, free: 5.773 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 0.0001264/0.1368, allocations: 95.25 kB / 366.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002697/0.1371, allocations: 111.8 kB / 366.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1371, allocations: 0 / 366.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.809e-05/0.1372, allocations: 7.938 kB / 366.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004581/0.1376, allocations: 87.78 kB / 366.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004746/0.1381, allocations: 281 kB / 366.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.1385, allocations: 0.724 MB / 367.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.38e-05/0.1385, allocations: 9.422 kB / 367.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.878e-05/0.1386, allocations: 15.44 kB / 367.3 MB, free: 4.387 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1386, allocations: 4 kB / 367.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of Templates: time 0.003717/0.1423, allocations: 1.193 MB / 368.5 MB, free: 3.195 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins1/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