Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.006831/0.006831, allocations: 93.28 kB / 15.91 MB, free: 6.273 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.001263/0.001263, allocations: 198.1 kB / 16.83 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 205.1 MB / 222.7 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09086/0.09086, allocations: 12.59 MB / 282.6 MB, free: 8.848 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 87.89 kB / 342.8 MB, free: 21.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1379, allocations: 49.4 MB / 392.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.004145/0.142, allocations: 1.81 MB / 394 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.1434, allocations: 0.5658 MB / 394.6 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.1437, allocations: 7.938 kB / 394.6 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.97e-05/0.1438, allocations: 3.938 kB / 394.6 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002132/0.144, allocations: 11.94 kB / 394.6 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.1445, allocations: 79.84 kB / 394.7 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.1447, allocations: 87.7 kB / 394.7 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.1449, allocations: 21.12 kB / 394.8 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.145, allocations: 39.83 kB / 394.8 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.007e-05/0.1451, allocations: 51.72 kB / 394.9 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.079e-05/0.1451, allocations: 4 kB / 394.9 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.025e-05/0.1451, allocations: 4 kB / 394.9 MB, free: 1 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.313e-05/0.1452, allocations: 23.91 kB / 394.9 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.876e-05/0.1453, allocations: 47.67 kB / 394.9 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.1455, allocations: 103.9 kB / 395 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1455, allocations: 0 / 395 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1455, allocations: 0 / 395 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.1455, allocations: 0 / 395 MB, free: 0.8281 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.0006502/0.1462, allocations: 426.9 kB / 395.5 MB, free: 372 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1462, allocations: 8.031 kB / 395.5 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.523e-05/0.1463, allocations: 16.75 kB / 395.5 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002632/0.1465, allocations: 216 kB / 395.7 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.1466, allocations: 8.375 kB / 395.7 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.1466, allocations: 12.38 kB / 395.7 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005916/0.1472, allocations: 290.1 kB / 396 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.1472, allocations: 3.938 kB / 396 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.1473, allocations: 4 kB / 396 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.1473, allocations: 4 kB / 396 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.1474, allocations: 43.97 kB / 396 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003987/0.1478, allocations: 310.5 kB / 396.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002468/0.1481, allocations: 131.9 kB / 396.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.1482, allocations: 74.66 kB / 396.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.417e-05/0.1483, allocations: 0 / 396.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.1483, allocations: 46.48 kB / 396.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.132e-06/0.1483, allocations: 3.938 kB / 396.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004439/0.1488, allocations: 173.5 kB / 396.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.1489, allocations: 118.8 kB / 396.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.149, allocations: 150.2 kB / 397 MB, free: 14.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.1491, allocations: 29.7 kB / 397.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.958e-05/0.1491, allocations: 96.17 kB / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.1492, allocations: 15.89 kB / 397.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.408e-05/0.1492, allocations: 37.7 kB / 397.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1494, allocations: 326.8 kB / 397.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.294e-05/0.1495, allocations: 27.98 kB / 397.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.1496, allocations: 138.4 kB / 397.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/0.1499, allocations: 170.4 kB / 397.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1499, allocations: 0 / 397.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000284/0.1502, allocations: 177.2 kB / 398 MB, free: 13.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.1502, allocations: 11.98 kB / 398 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1503, allocations: 3.938 kB / 398 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.1503, allocations: 8.531 kB / 398.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.1504, allocations: 31.92 kB / 398.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.1505, allocations: 8 kB / 398.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.614e-05/0.1506, allocations: 19.78 kB / 398.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.1506, allocations: 8 kB / 398.1 MB, free: 13.36 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.0001473/0.1507, allocations: 141.7 kB / 398.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/0.1509, allocations: 113.5 kB / 398.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.449e-05/0.151, allocations: 20.72 kB / 398.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.151, allocations: 0 / 398.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.151, allocations: 8.406 kB / 398.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.151, allocations: 7.938 kB / 398.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.1513, allocations: 197.5 kB / 398.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1513, allocations: 0 / 398.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.1514, allocations: 23.98 kB / 398.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1514, allocations: 3.938 kB / 398.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1514, allocations: 8 kB / 398.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1514, allocations: 3.984 kB / 398.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1514, allocations: 0 / 398.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003102/0.1517, allocations: 264 kB / 398.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.385e-05/0.1518, allocations: 108.9 kB / 399 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.1519, allocations: 8 kB / 399 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-05/0.152, allocations: 8 kB / 399 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/0.152, allocations: 3.938 kB / 399 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.152, allocations: 8 kB / 399 MB, free: 12.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.892e-05/0.1521, allocations: 116.1 kB / 399.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1521, allocations: 0 / 399.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002779/0.1524, allocations: 20 kB / 399.2 MB, free: 12.21 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.0001455/0.1526, allocations: 107.2 kB / 399.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002534/0.1528, allocations: 104.7 kB / 399.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1528, allocations: 8.125 kB / 399.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.48e-05/0.1529, allocations: 4 kB / 399.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006053/0.1535, allocations: 80.48 kB / 399.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005546/0.1541, allocations: 311.4 kB / 399.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.1544, allocations: 0.7166 MB / 400.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.469e-05/0.1545, allocations: 13.42 kB / 400.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.1545, allocations: 15.44 kB / 400.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1545, allocations: 0 / 400.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of Templates: time 0.004017/0.1585, allocations: 1.11 MB / 401.6 MB, free: 9.684 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches