Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.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.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007902/0.007902, allocations: 88.67 kB / 15.91 MB, free: 6.285 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.001205/0.001206, allocations: 197.3 kB / 16.83 MB, free: 6.215 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.824/1.824, allocations: 205.1 MB / 222.7 MB, free: 4.949 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.08103/0.08103, allocations: 12.59 MB / 282.6 MB, free: 9.098 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.001607/0.001607, allocations: 83.89 kB / 342.8 MB, free: 21.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1133, allocations: 49.39 MB / 392.2 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.004413/0.1177, allocations: 2.732 MB / 394.9 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.1196, allocations: 0.9397 MB / 395.8 MB, free: 60 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002802/0.12, allocations: 7.938 kB / 395.9 MB, free: 52 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003225/0.1203, allocations: 47.58 kB / 395.9 MB, free: 4 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003536/0.1207, allocations: 47.69 kB / 395.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000875/0.1216, allocations: 215.7 kB / 396.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.122, allocations: 347 kB / 396.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003482/0.1223, allocations: 184.6 kB / 396.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.1225, allocations: 123.4 kB / 396.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.1227, allocations: 139.2 kB / 396.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.325e-05/0.1228, allocations: 16 kB / 396.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001251/0.1229, allocations: 55.95 kB / 397 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.123, allocations: 63.75 kB / 397.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.1232, allocations: 155 kB / 397.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003851/0.1236, allocations: 367 kB / 397.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1236, allocations: 0 / 397.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1236, allocations: 0 / 397.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.1236, allocations: 0 / 397.6 MB, free: 14.32 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001189/0.1248, allocations: 0.6391 MB / 398.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1249, allocations: 16.02 kB / 398.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.802e-05/0.125, allocations: 40.47 kB / 398.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004291/0.1254, allocations: 319.9 kB / 398.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.1254, allocations: 20.94 kB / 398.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.071e-05/0.1255, allocations: 28.38 kB / 398.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.1269, allocations: 0.7556 MB / 399.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.1269, allocations: 0 / 399.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.127, allocations: 12 kB / 399.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.127, allocations: 4 kB / 399.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005393/0.1275, allocations: 227.8 kB / 399.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008873/0.1284, allocations: 0.7644 MB / 400.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.1296, allocations: 0.623 MB / 401 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004801/0.1301, allocations: 267.2 kB / 401.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008101/0.1309, allocations: 0.5894 MB / 401.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.1309, allocations: 50.61 kB / 401.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.034e-06/0.1309, allocations: 3.938 kB / 401.9 MB, free: 9.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001158/0.1321, allocations: 0.5327 MB / 402.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.1322, allocations: 204 kB / 402.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.1325, allocations: 258.6 kB / 402.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.1325, allocations: 29.7 kB / 402.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.1326, allocations: 152.8 kB / 403.1 MB, free: 8.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.058e-05/0.1327, allocations: 55.52 kB / 403.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.1328, allocations: 82.3 kB / 403.2 MB, free: 8.184 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.133, allocations: 346.8 kB / 403.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.1331, allocations: 85.06 kB / 403.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004263/0.1336, allocations: 438.9 kB / 404.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006451/0.1342, allocations: 0.5281 MB / 404.6 MB, free: 6.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.1343, allocations: 8 kB / 404.6 MB, free: 6.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007673/0.135, allocations: 497 kB / 405.1 MB, free: 5.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.1351, allocations: 15.12 kB / 405.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.847e-05/0.1351, allocations: 12 kB / 405.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.964e-05/0.1351, allocations: 16 kB / 405.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003012/0.1354, allocations: 119.8 kB / 405.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.097e-05/0.1355, allocations: 19.94 kB / 405.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.1357, allocations: 52.14 kB / 405.3 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-05/0.1358, allocations: 32 kB / 405.3 MB, free: 5.707 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001838/0.136, allocations: 189.5 kB / 405.5 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005956/0.1366, allocations: 345.8 kB / 405.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006988/0.1373, allocations: 364.6 kB / 406.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.1373, allocations: 4 kB / 406.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.709e-06/0.1373, allocations: 4 kB / 406.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.1373, allocations: 3.984 kB / 406.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003798/0.1377, allocations: 337.1 kB / 406.6 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.1377, allocations: 7.984 kB / 406.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003798/0.1381, allocations: 99.88 kB / 406.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1381, allocations: 4 kB / 406.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.1382, allocations: 8 kB / 406.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.1382, allocations: 7.938 kB / 406.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1382, allocations: 0 / 406.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.1395, allocations: 0.7746 MB / 407.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.42e-05/0.1396, allocations: 124.5 kB / 407.6 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.1397, allocations: 15.94 kB / 407.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.1399, allocations: 23.97 kB / 407.6 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.14, allocations: 12.06 kB / 407.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/0.14, allocations: 15.94 kB / 407.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.1402, allocations: 190 kB / 407.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1402, allocations: 0 / 407.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004923/0.1407, allocations: 75.94 kB / 407.9 MB, free: 3.023 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001967/0.1409, allocations: 123.2 kB / 408 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006746/0.1416, allocations: 365.5 kB / 408.4 MB, free: 2.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.1416, allocations: 0 / 408.4 MB, free: 2.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.524e-05/0.1417, allocations: 31.86 kB / 408.4 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009904/0.1427, allocations: 297.9 kB / 408.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.1441, allocations: 0.8662 MB / 409.6 MB, free: 1.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.1446, allocations: 0.8123 MB / 410.4 MB, free: 484 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.1447, allocations: 39.27 kB / 410.4 MB, free: 448 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.833e-05/0.1448, allocations: 31.44 kB / 410.5 MB, free: 416 kB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1448, allocations: 0 / 410.5 MB, free: 416 kB / 302.1 MB Notification: Performance of Templates: time 0.008786/0.1536, allocations: 4.266 MB / 414.7 MB, free: 12.14 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe 2>&1)