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.001843/0.001843, allocations: 108.9 kB / 16.45 MB, free: 6.43 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.001832/0.001832, allocations: 187 kB / 17.39 MB, free: 5.691 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.599/1.599, 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.09295/0.09295, allocations: 12.6 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.001913/0.001913, allocations: 87.28 kB / 394.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1236, allocations: 49.4 MB / 443.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.004332/0.128, allocations: 1.942 MB / 445.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.1305, allocations: 1.123 MB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.1308, allocations: 3.938 kB / 446.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004637/0.1312, allocations: 67.67 kB / 446.7 MB, free: 13.34 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.0003061/0.1315, allocations: 107.5 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008043/0.1324, allocations: 271.2 kB / 447.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003008/0.1327, allocations: 211.4 kB / 447.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.1329, allocations: 57.58 kB / 447.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.133, allocations: 91.62 kB / 447.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.1332, allocations: 99.59 kB / 447.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.1332, allocations: 12 kB / 447.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002083/0.1334, allocations: 79.88 kB / 447.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.1336, allocations: 63.77 kB / 447.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.1337, allocations: 103.3 kB / 447.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004465/0.1341, allocations: 283 kB / 448 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.131e-05/0.1342, allocations: 4 kB / 448 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.629e-06/0.1342, allocations: 4 kB / 448.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.465e-06/0.1342, allocations: 3.938 kB / 448.1 MB, free: 11.97 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.001147/0.1353, allocations: 0.5662 MB / 448.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.1354, allocations: 8.031 kB / 448.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.588e-05/0.1355, allocations: 40.5 kB / 448.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005036/0.136, allocations: 319.4 kB / 449 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.1361, allocations: 12.38 kB / 449 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.336e-05/0.1361, allocations: 16.12 kB / 449 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006647/0.1368, allocations: 313.3 kB / 449.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1368, allocations: 0 / 449.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/0.1368, allocations: 12 kB / 449.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.1368, allocations: 4 kB / 449.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.137, allocations: 67.95 kB / 449.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005906/0.1376, allocations: 418.2 kB / 449.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003832/0.138, allocations: 200 kB / 450 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.1382, allocations: 86.55 kB / 450.1 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.736e-05/0.1382, allocations: 11.94 kB / 450.1 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.1384, allocations: 75.38 kB / 450.2 MB, free: 9.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.593e-06/0.1384, allocations: 0 / 450.2 MB, free: 9.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005692/0.139, allocations: 261.3 kB / 450.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.1391, allocations: 166.2 kB / 450.6 MB, free: 9.176 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003501/0.1395, allocations: 350.9 kB / 450.9 MB, free: 8.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.62e-05/0.1396, allocations: 33.7 kB / 451 MB, free: 8.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.1397, allocations: 128.7 kB / 451.1 MB, free: 8.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.952e-05/0.1397, allocations: 31.64 kB / 451.1 MB, free: 8.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/0.1399, allocations: 61.86 kB / 451.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002178/0.1402, allocations: 342.7 kB / 451.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.66e-05/0.1403, allocations: 40.45 kB / 451.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.1405, allocations: 186.9 kB / 451.7 MB, free: 7.926 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/0.1407, allocations: 211.2 kB / 451.9 MB, free: 7.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1407, allocations: 4 kB / 451.9 MB, free: 7.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003665/0.1411, allocations: 233.2 kB / 452.2 MB, free: 7.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1411, allocations: 8.531 kB / 452.2 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1412, allocations: 8 kB / 452.2 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.1412, allocations: 4 kB / 452.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.1414, allocations: 44.17 kB / 452.2 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/0.1414, allocations: 19.86 kB / 452.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.1415, allocations: 16 kB / 452.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.1415, allocations: 8 kB / 452.3 MB, free: 7.32 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.0001808/0.1417, allocations: 179.9 kB / 452.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002/0.1419, allocations: 141.2 kB / 452.6 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.269e-05/0.142, allocations: 33.73 kB / 452.6 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.142, allocations: 4 kB / 452.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.142, allocations: 3.938 kB / 452.6 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.142, allocations: 0 / 452.6 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.1423, allocations: 273.4 kB / 452.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1423, allocations: 0 / 452.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.1424, allocations: 31.92 kB / 452.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.1424, allocations: 0 / 452.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1424, allocations: 11.98 kB / 452.9 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1424, allocations: 0 / 452.9 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.1424, allocations: 7.938 kB / 453 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003912/0.1428, allocations: 238.4 kB / 453.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/0.143, allocations: 120.8 kB / 453.3 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.919e-05/0.143, allocations: 8 kB / 453.3 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.381e-05/0.1431, allocations: 7.984 kB / 453.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.742e-05/0.1432, allocations: 15.94 kB / 453.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.1432, allocations: 11.98 kB / 453.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002485/0.1435, allocations: 245.9 kB / 453.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1435, allocations: 0 / 453.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003244/0.1438, allocations: 55.89 kB / 453.6 MB, free: 5.852 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.001001/0.1448, allocations: 432.7 kB / 454.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003442/0.1452, allocations: 163.7 kB / 454.2 MB, free: 5.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1452, allocations: 0 / 454.2 MB, free: 5.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.335e-05/0.1453, allocations: 23.98 kB / 454.2 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005195/0.1458, allocations: 125.5 kB / 454.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007374/0.1466, allocations: 463.2 kB / 454.8 MB, free: 4.617 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.1469, allocations: 0.7675 MB / 455.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.553e-05/0.147, allocations: 34.3 kB / 455.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.233e-05/0.1471, allocations: 31.42 kB / 455.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1471, allocations: 0 / 455.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of Templates: time 0.007751/0.1549, allocations: 3.51 MB / 459.2 MB, free: 256 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