Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000981/0.000981, allocations: 94.55 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 180.8 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.603/1.603, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003572, allocations: 6.062 kB / 300.7 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1407, allocations: 50.42 MB / 351.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002554/0.1433, allocations: 1.424 MB / 352.6 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.1444, allocations: 0.5029 MB / 353.1 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.1446, allocations: 7.938 kB / 353.1 MB, free: 9.816 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.881e-05/0.1446, allocations: 7.922 kB / 353.1 MB, free: 9.809 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.1448, allocations: 11.97 kB / 353.1 MB, free: 9.797 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.1452, allocations: 91.66 kB / 353.2 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.1453, allocations: 51.88 kB / 353.2 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.1455, allocations: 29.33 kB / 353.3 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.042e-05/0.1456, allocations: 31.84 kB / 353.3 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.342e-05/0.1456, allocations: 43.77 kB / 353.3 MB, free: 9.555 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.849e-05/0.1457, allocations: 4 kB / 353.3 MB, free: 9.551 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.007e-05/0.1457, allocations: 4 kB / 353.3 MB, free: 9.547 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.842e-05/0.1457, allocations: 19.92 kB / 353.4 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.001e-05/0.1458, allocations: 37.64 kB / 353.4 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.1459, allocations: 75.84 kB / 353.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1459, allocations: 3.938 kB / 353.5 MB, free: 9.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.1459, allocations: 0 / 353.5 MB, free: 9.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.146, allocations: 7.938 kB / 353.5 MB, free: 9.398 MB / 286.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.0006107/0.1466, allocations: 395 kB / 353.9 MB, free: 8.965 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1466, allocations: 8.031 kB / 353.9 MB, free: 8.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.1467, allocations: 23.7 kB / 353.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.147, allocations: 210.7 kB / 354.1 MB, free: 8.688 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.808e-05/0.147, allocations: 8 kB / 354.1 MB, free: 8.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.147, allocations: 12 kB / 354.1 MB, free: 8.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005365/0.1476, allocations: 272.3 kB / 354.4 MB, free: 8.383 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1476, allocations: 0 / 354.4 MB, free: 8.383 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.1476, allocations: 11.98 kB / 354.4 MB, free: 8.371 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1476, allocations: 7.938 kB / 354.4 MB, free: 8.363 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001391/0.1478, allocations: 47.98 kB / 354.5 MB, free: 8.316 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004558/0.1483, allocations: 302.5 kB / 354.8 MB, free: 7.965 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002873/0.1486, allocations: 127.9 kB / 354.9 MB, free: 7.812 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.1486, allocations: 16.2 kB / 354.9 MB, free: 7.797 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.1486, allocations: 38.53 kB / 354.9 MB, free: 7.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.473e-06/0.1486, allocations: 4 kB / 354.9 MB, free: 7.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004461/0.1491, allocations: 177.3 kB / 355.1 MB, free: 7.566 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.267e-05/0.1492, allocations: 118.9 kB / 355.2 MB, free: 7.426 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.1494, allocations: 150.2 kB / 355.4 MB, free: 7.27 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/0.1494, allocations: 25.7 kB / 355.4 MB, free: 7.238 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.183e-05/0.1495, allocations: 92.14 kB / 355.5 MB, free: 7.145 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.324e-05/0.1495, allocations: 23.78 kB / 355.5 MB, free: 7.121 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.267e-06/0.1495, allocations: 4 kB / 355.5 MB, free: 7.117 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.1497, allocations: 318.8 kB / 355.8 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.341e-05/0.1498, allocations: 36.36 kB / 355.9 MB, free: 6.762 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.1499, allocations: 128.8 kB / 356 MB, free: 6.586 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.619e-05/0.1501, allocations: 55.86 kB / 356 MB, free: 6.531 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1501, allocations: 4.375 kB / 356 MB, free: 6.527 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002798/0.1503, allocations: 177.2 kB / 356.2 MB, free: 6.348 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.1504, allocations: 10.5 kB / 356.2 MB, free: 6.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.1504, allocations: 4 kB / 356.2 MB, free: 6.336 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.1504, allocations: 11.89 kB / 356.2 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.1506, allocations: 36.45 kB / 356.3 MB, free: 6.289 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.1506, allocations: 4 kB / 356.3 MB, free: 6.285 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.267e-05/0.1507, allocations: 23.83 kB / 356.3 MB, free: 6.262 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.1507, allocations: 15.94 kB / 356.3 MB, free: 6.246 MB / 286.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 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.1509, allocations: 125.8 kB / 356.4 MB, free: 6.113 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/0.151, allocations: 117.5 kB / 356.6 MB, free: 5.992 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.193e-05/0.1511, allocations: 16.72 kB / 356.6 MB, free: 5.973 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1511, allocations: 7.953 kB / 356.6 MB, free: 5.965 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1511, allocations: 0 / 356.6 MB, free: 5.965 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1511, allocations: 3.984 kB / 356.6 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.1514, allocations: 205.5 kB / 356.8 MB, free: 5.711 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.1514, allocations: 7.984 kB / 356.8 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.1515, allocations: 23.98 kB / 356.8 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1515, allocations: 0 / 356.8 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.1515, allocations: 8 kB / 356.8 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1515, allocations: 0 / 356.8 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.1515, allocations: 3.953 kB / 356.8 MB, free: 5.668 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.1518, allocations: 272.4 kB / 357.1 MB, free: 5.367 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.379e-05/0.1519, allocations: 104.9 kB / 357.2 MB, free: 5.246 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.353e-05/0.1519, allocations: 11.95 kB / 357.2 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.109e-05/0.152, allocations: 0 / 357.2 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.212e-05/0.1521, allocations: 11.98 kB / 357.2 MB, free: 5.223 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.1521, allocations: 8 kB / 357.2 MB, free: 5.215 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.594e-05/0.1522, allocations: 113.5 kB / 357.3 MB, free: 5.105 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1522, allocations: 0 / 357.3 MB, free: 5.105 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000272/0.1524, allocations: 20 kB / 357.4 MB, free: 5.086 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001352/0.1526, allocations: 107.6 kB / 357.5 MB, free: 4.973 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002479/0.1528, allocations: 115.9 kB / 357.6 MB, free: 4.859 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1529, allocations: 0 / 357.6 MB, free: 4.859 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.199e-05/0.1529, allocations: 8 kB / 357.6 MB, free: 4.852 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004109/0.1533, allocations: 87.42 kB / 357.7 MB, free: 4.77 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004838/0.1538, allocations: 299.7 kB / 358 MB, free: 4.441 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/0.1541, allocations: 0.7244 MB / 358.7 MB, free: 3.691 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.66e-05/0.1542, allocations: 13.41 kB / 358.7 MB, free: 3.68 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.1542, allocations: 19.44 kB / 358.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1542, allocations: 0 / 358.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of Templates: time 0.003606/0.1578, allocations: 1.04 MB / 359.8 MB, free: 2.625 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches