Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 105.8 kB / 16.45 MB, free: 6.449 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.001244/0.001244, allocations: 192.2 kB / 17.39 MB, free: 5.668 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.69/1.69, 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.08217/0.08217, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.001832/0.001832, allocations: 88.81 kB / 394.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1232, allocations: 49.4 MB / 443.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.003894/0.1272, allocations: 1.942 MB / 445.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001975/0.1292, allocations: 1.119 MB / 446.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.1294, allocations: 7.938 kB / 446.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004239/0.1298, allocations: 71.59 kB / 446.7 MB, free: 13.32 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003533/0.1302, allocations: 95.58 kB / 446.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009059/0.1311, allocations: 283.2 kB / 447.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.1314, allocations: 207.4 kB / 447.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.1316, allocations: 57.58 kB / 447.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.1317, allocations: 95.56 kB / 447.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.1319, allocations: 99.59 kB / 447.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.1319, allocations: 12 kB / 447.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.1321, allocations: 71.95 kB / 447.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.1322, allocations: 63.75 kB / 447.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.1324, allocations: 107.3 kB / 447.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004629/0.1328, allocations: 283.1 kB / 448.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1328, allocations: 0 / 448.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.1328, allocations: 0 / 448.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1329, allocations: 3.938 kB / 448.1 MB, free: 11.96 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001124/0.134, allocations: 0.5779 MB / 448.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.134, allocations: 8.031 kB / 448.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.244e-05/0.1341, allocations: 32.56 kB / 448.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005224/0.1347, allocations: 323.4 kB / 449 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.1347, allocations: 8.375 kB / 449 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.277e-05/0.1347, allocations: 20.12 kB / 449 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006598/0.1354, allocations: 309.4 kB / 449.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.1354, allocations: 0 / 449.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.1355, allocations: 4 kB / 449.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.027e-05/0.1355, allocations: 11.98 kB / 449.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.1357, allocations: 71.89 kB / 449.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000708/0.1364, allocations: 410.2 kB / 449.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.1368, allocations: 195.9 kB / 450 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.137, allocations: 94.53 kB / 450.1 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.1371, allocations: 4 kB / 450.1 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.1373, allocations: 83.31 kB / 450.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.425e-06/0.1373, allocations: 3.938 kB / 450.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006311/0.1379, allocations: 257.6 kB / 450.4 MB, free: 9.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.138, allocations: 174.1 kB / 450.6 MB, free: 9.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/0.1384, allocations: 346.9 kB / 450.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.1385, allocations: 29.69 kB / 451 MB, free: 8.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.1386, allocations: 132.7 kB / 451.1 MB, free: 8.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.953e-05/0.1386, allocations: 35.64 kB / 451.1 MB, free: 8.602 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-05/0.1387, allocations: 53.94 kB / 451.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1389, allocations: 346.7 kB / 451.5 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.382e-05/0.139, allocations: 36.45 kB / 451.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.1392, allocations: 194.9 kB / 451.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002723/0.1395, allocations: 211.2 kB / 452 MB, free: 7.645 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1395, allocations: 0 / 452 MB, free: 7.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004029/0.1399, allocations: 236.9 kB / 452.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1399, allocations: 4.531 kB / 452.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1399, allocations: 8 kB / 452.2 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.14, allocations: 8 kB / 452.2 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.1402, allocations: 39.92 kB / 452.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.816e-05/0.1402, allocations: 11.94 kB / 452.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.1403, allocations: 15.98 kB / 452.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.1404, allocations: 8 kB / 452.3 MB, free: 7.312 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample.y) * 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 (28): * Single equations (assignments): 28 * 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.0002013/0.1406, allocations: 172 kB / 452.4 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002155/0.1408, allocations: 145.2 kB / 452.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.901e-05/0.1409, allocations: 41.73 kB / 452.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.1409, allocations: 4 kB / 452.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1409, allocations: 4.406 kB / 452.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/0.1409, allocations: 0 / 452.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002918/0.1412, allocations: 269.4 kB / 452.9 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1412, allocations: 0 / 452.9 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.1414, allocations: 27.98 kB / 452.9 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1414, allocations: 7.938 kB / 452.9 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.1414, allocations: 4.125 kB / 452.9 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1414, allocations: 7.984 kB / 452.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.1414, allocations: 7.938 kB / 453 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004292/0.1418, allocations: 242.4 kB / 453.2 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/0.142, allocations: 124.8 kB / 453.3 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.1421, allocations: 4 kB / 453.3 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.362e-05/0.1422, allocations: 8 kB / 453.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.109e-05/0.1423, allocations: 11.92 kB / 453.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.1423, allocations: 16 kB / 453.4 MB, free: 6.129 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002765/0.1426, allocations: 249.9 kB / 453.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1426, allocations: 0 / 453.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003499/0.1429, allocations: 51.91 kB / 453.6 MB, free: 5.836 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001088/0.144, allocations: 436.5 kB / 454.1 MB, free: 5.395 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000442/0.1445, allocations: 159.7 kB / 454.2 MB, free: 5.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1445, allocations: 0 / 454.2 MB, free: 5.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.1446, allocations: 31.92 kB / 454.3 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005568/0.1452, allocations: 121 kB / 454.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008431/0.146, allocations: 455.3 kB / 454.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.1464, allocations: 0.7675 MB / 455.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.451e-05/0.1465, allocations: 34.28 kB / 455.6 MB, free: 3.781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.723e-05/0.1466, allocations: 31.42 kB / 455.7 MB, free: 3.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1466, allocations: 0 / 455.7 MB, free: 3.75 MB / 334.1 MB Notification: Performance of Templates: time 0.008586/0.1552, allocations: 3.514 MB / 459.2 MB, free: 240 kB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches