Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006756/0.006756, allocations: 93.11 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.001131/0.001131, allocations: 200.2 kB / 16.84 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.605/1.605, allocations: 205.1 MB / 222.7 MB, free: 4.738 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.08088/0.08088, allocations: 12.59 MB / 282.6 MB, free: 8.852 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.001863/0.001863, allocations: 84.5 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1188, allocations: 49.4 MB / 392.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.003878/0.1227, allocations: 1.605 MB / 393.8 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.1239, allocations: 0.5152 MB / 394.3 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.1241, allocations: 3.938 kB / 394.3 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.576e-05/0.1242, allocations: 3.984 kB / 394.3 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.1244, allocations: 19.88 kB / 394.3 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000439/0.1249, allocations: 35.84 kB / 394.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.125, allocations: 43.91 kB / 394.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.1252, allocations: 12.19 kB / 394.4 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001269/0.1254, allocations: 31.84 kB / 394.5 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.262e-05/0.1255, allocations: 19.86 kB / 394.5 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.1255, allocations: 4 kB / 394.5 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.507e-05/0.1255, allocations: 8 kB / 394.5 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.419e-05/0.1256, allocations: 11.94 kB / 394.5 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.918e-05/0.1257, allocations: 27.78 kB / 394.5 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.1259, allocations: 47.77 kB / 394.6 MB, free: 1.301 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1259, allocations: 0 / 394.6 MB, free: 1.301 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1259, allocations: 0 / 394.6 MB, free: 1.301 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.1259, allocations: 0 / 394.6 MB, free: 1.301 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007133/0.1266, allocations: 379.4 kB / 394.9 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/0.1267, allocations: 12.02 kB / 395 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.11e-05/0.1268, allocations: 12.84 kB / 395 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.1271, allocations: 200 kB / 395.2 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1271, allocations: 4.375 kB / 395.2 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.333e-05/0.1272, allocations: 4.375 kB / 395.2 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004515/0.1276, allocations: 105.2 kB / 395.3 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.1277, allocations: 4 kB / 395.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.1277, allocations: 0 / 395.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.1277, allocations: 3.938 kB / 395.3 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.1279, allocations: 19.98 kB / 395.3 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005992/0.1285, allocations: 269.7 kB / 395.6 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.1286, allocations: 49.2 kB / 395.6 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.22e-05/0.1287, allocations: 13.78 kB / 395.6 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.1288, allocations: 3.938 kB / 395.6 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.43e-05/0.1288, allocations: 34.56 kB / 395.7 MB, free: 20 kB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.603e-06/0.1288, allocations: 3.938 kB / 395.7 MB, free: 16 kB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003975/0.1292, allocations: 73.52 kB / 395.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.497e-05/0.1293, allocations: 81.11 kB / 395.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.1295, allocations: 141.6 kB / 396 MB, free: 15.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.1296, allocations: 25.7 kB / 396 MB, free: 15.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.871e-05/0.1296, allocations: 92.14 kB / 396.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.1297, allocations: 0 / 396.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.1297, allocations: 21.86 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1299, allocations: 322.8 kB / 396.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.737e-05/0.13, allocations: 7.984 kB / 396.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.349e-05/0.13, allocations: 21.72 kB / 396.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.1302, allocations: 33.64 kB / 396.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1302, allocations: 4.062 kB / 396.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001659/0.1303, allocations: 53.67 kB / 396.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.1304, allocations: 4 kB / 396.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.1304, allocations: 0 / 396.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.1304, allocations: 7.938 kB / 396.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.409e-05/0.1305, allocations: 4 kB / 396.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.1305, allocations: 0 / 396.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.213e-05/0.1306, allocations: 0 / 396.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.1306, allocations: 7.984 kB / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.000127/0.1308, allocations: 121.8 kB / 396.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.069e-05/0.1309, allocations: 41.59 kB / 396.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.118e-05/0.1309, allocations: 11.86 kB / 396.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1309, allocations: 4 kB / 396.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1309, allocations: 0 / 396.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.131, allocations: 0 / 396.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002421/0.1312, allocations: 169.6 kB / 396.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1312, allocations: 0 / 396.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.991e-05/0.1313, allocations: 11.97 kB / 396.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.1313, allocations: 3.938 kB / 396.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.1313, allocations: 4 kB / 396.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.1313, allocations: 7.969 kB / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1313, allocations: 4 kB / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.1316, allocations: 152.2 kB / 397.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.548e-05/0.1317, allocations: 97.03 kB / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.1317, allocations: 4 kB / 397.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.827e-05/0.1318, allocations: 0 / 397.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/0.1318, allocations: 3.984 kB / 397.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.1319, allocations: 8 kB / 397.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.132, allocations: 107.2 kB / 397.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.132, allocations: 0 / 397.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000331/0.1323, allocations: 7.938 kB / 397.3 MB, free: 14.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001414/0.1325, allocations: 99.19 kB / 397.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001777/0.1327, allocations: 23.98 kB / 397.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1327, allocations: 0 / 397.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.329e-05/0.1327, allocations: 8 kB / 397.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000636/0.1334, allocations: 31.89 kB / 397.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005174/0.1339, allocations: 181.4 kB / 397.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.1343, allocations: 0.6926 MB / 398.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.693e-05/0.1344, allocations: 7.844 kB / 398.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.1344, allocations: 11.44 kB / 398.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1344, allocations: 0 / 398.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of Templates: time 0.003836/0.1383, allocations: 0.5295 MB / 398.9 MB, free: 12.57 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches