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.001205/0.001205, allocations: 106.5 kB / 16.45 MB, free: 6.438 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.001395/0.001395, allocations: 189.4 kB / 17.39 MB, free: 5.688 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.63/1.63, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08359/0.08359, allocations: 12.59 MB / 283.2 MB, free: 15.4 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.002032/0.002032, allocations: 88.22 kB / 394.2 MB, free: 45.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1241, allocations: 49.4 MB / 443.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.003239/0.1274, allocations: 1.732 MB / 445.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.1291, allocations: 0.5774 MB / 445.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.1293, allocations: 7.938 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.135e-05/0.1294, allocations: 7.875 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002457/0.1297, allocations: 15.84 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006356/0.1303, allocations: 95.66 kB / 446 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002429/0.1306, allocations: 99.75 kB / 446.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.1308, allocations: 36.78 kB / 446.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.131, allocations: 43.78 kB / 446.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.1311, allocations: 47.77 kB / 446.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.1311, allocations: 8 kB / 446.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.856e-05/0.1312, allocations: 11.94 kB / 446.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.651e-05/0.1312, allocations: 23.92 kB / 446.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.142e-05/0.1313, allocations: 55.66 kB / 446.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001852/0.1315, allocations: 95.62 kB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1315, allocations: 0 / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1316, allocations: 4 kB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1316, allocations: 0 / 446.4 MB, free: 13.61 MB / 334.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.0007203/0.1323, allocations: 430.8 kB / 446.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.1323, allocations: 12.03 kB / 446.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.325e-05/0.1324, allocations: 16.75 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.1327, allocations: 218 kB / 447.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.513e-05/0.1328, allocations: 12.38 kB / 447.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.1328, allocations: 12.38 kB / 447.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005313/0.1333, allocations: 281.7 kB / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1334, allocations: 0 / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.1334, allocations: 4 kB / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.1334, allocations: 8 kB / 447.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.1336, allocations: 47.91 kB / 447.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004268/0.134, allocations: 306.5 kB / 447.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.1343, allocations: 143.8 kB / 447.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.1344, allocations: 66.62 kB / 447.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.1344, allocations: 3.984 kB / 448 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/0.1345, allocations: 38.56 kB / 448 MB, free: 11.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.303e-06/0.1345, allocations: 4 kB / 448 MB, free: 11.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.000428/0.1349, allocations: 169.3 kB / 448.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.1351, allocations: 119 kB / 448.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.1353, allocations: 150.1 kB / 448.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.1353, allocations: 37.64 kB / 448.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.243e-05/0.1354, allocations: 92.09 kB / 448.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.1354, allocations: 23.86 kB / 448.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/0.1355, allocations: 37.7 kB / 448.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003743/0.1358, allocations: 330.8 kB / 448.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.931e-05/0.1359, allocations: 23.98 kB / 449 MB, free: 10.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.1361, allocations: 130.6 kB / 449.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.1363, allocations: 174.3 kB / 449.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1363, allocations: 0 / 449.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002724/0.1366, allocations: 185.1 kB / 449.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.1366, allocations: 8 kB / 449.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1366, allocations: 4 kB / 449.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1367, allocations: 4 kB / 449.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.1368, allocations: 28.83 kB / 449.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.1368, allocations: 12 kB / 449.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.279e-05/0.1369, allocations: 15.88 kB / 449.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.1369, allocations: 8 kB / 449.5 MB, free: 10.14 MB / 334.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.0001355/0.1371, allocations: 145.6 kB / 449.7 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.1373, allocations: 121.4 kB / 449.8 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.859e-05/0.1373, allocations: 16.72 kB / 449.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1373, allocations: 0 / 449.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.1374, allocations: 0 / 449.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.1374, allocations: 15.92 kB / 449.8 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.1376, allocations: 189.6 kB / 450 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1376, allocations: 0 / 450 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.1377, allocations: 27.92 kB / 450 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1378, allocations: 0 / 450 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.1378, allocations: 7.984 kB / 450 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1378, allocations: 4 kB / 450 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1378, allocations: 0 / 450 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003337/0.1381, allocations: 260.8 kB / 450.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.815e-05/0.1382, allocations: 101 kB / 450.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/0.1383, allocations: 8 kB / 450.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.517e-05/0.1384, allocations: 8 kB / 450.4 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/0.1384, allocations: 3.938 kB / 450.4 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.1384, allocations: 7.984 kB / 450.4 MB, free: 9.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.521e-05/0.1385, allocations: 115.2 kB / 450.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.284e-06/0.1385, allocations: 4 kB / 450.5 MB, free: 9.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002836/0.1388, allocations: 23.94 kB / 450.5 MB, free: 8.992 MB / 334.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.0001577/0.139, allocations: 99.19 kB / 450.6 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003732/0.1394, allocations: 116.5 kB / 450.8 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.1394, allocations: 0 / 450.8 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.051e-05/0.1394, allocations: 12.12 kB / 450.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005745/0.14, allocations: 85 kB / 450.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006843/0.1407, allocations: 261.8 kB / 451.1 MB, free: 8.395 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/0.1413, allocations: 0.7242 MB / 451.8 MB, free: 7.645 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.997e-05/0.1414, allocations: 9.422 kB / 451.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.343e-05/0.1414, allocations: 15.44 kB / 451.9 MB, free: 7.617 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1414, allocations: 0 / 451.9 MB, free: 7.617 MB / 334.1 MB Notification: Performance of Templates: time 0.005293/0.1467, allocations: 1.215 MB / 453.1 MB, free: 6.402 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches