Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001688/0.001688, allocations: 174.7 kB / 16.77 MB, free: 4.898 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007273/0.0007273, allocations: 81.38 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06847/0.06847, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006888/0.0006889, allocations: 16 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1273, allocations: 50.38 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.003839/0.1312, allocations: 2.277 MB / 445.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.1337, allocations: 0.8856 MB / 446.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004782/0.1342, allocations: 11.94 kB / 446.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002853/0.1346, allocations: 43.58 kB / 446.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004047/0.135, allocations: 39.7 kB / 446.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.1361, allocations: 199.6 kB / 446.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006574/0.1368, allocations: 342.9 kB / 446.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004574/0.1372, allocations: 180.6 kB / 446.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.1375, allocations: 95.5 kB / 447 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.1377, allocations: 99.36 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.203e-05/0.1378, allocations: 8 kB / 447.1 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001568/0.138, allocations: 51.91 kB / 447.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.1381, allocations: 51.75 kB / 447.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001766/0.1383, allocations: 144.9 kB / 447.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003648/0.1386, allocations: 275.6 kB / 447.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1387, allocations: 0 / 447.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1387, allocations: 0 / 447.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.78e-05/0.1387, allocations: 0 / 447.6 MB, free: 11.42 MB / 298.7 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.001298/0.14, allocations: 0.5963 MB / 448.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.1401, allocations: 12.03 kB / 448.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.1402, allocations: 40.47 kB / 448.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005273/0.1408, allocations: 327.9 kB / 448.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.547e-05/0.1408, allocations: 20.94 kB / 448.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.037e-05/0.1409, allocations: 28.38 kB / 448.6 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.1427, allocations: 0.7714 MB / 449.4 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.1428, allocations: 3.906 kB / 449.4 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.251e-05/0.1428, allocations: 16 kB / 449.4 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.1429, allocations: 8 kB / 449.4 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008122/0.1437, allocations: 247.7 kB / 449.7 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.1448, allocations: 0.7721 MB / 450.5 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/0.1463, allocations: 0.6546 MB / 451.1 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007081/0.147, allocations: 275.2 kB / 451.4 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007499/0.1478, allocations: 0.5934 MB / 452 MB, free: 6.652 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.1479, allocations: 46.5 kB / 452 MB, free: 6.598 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 5.35e-06/0.1479, allocations: 3.984 kB / 452 MB, free: 6.594 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001925/0.1498, allocations: 0.5603 MB / 452.6 MB, free: 6.027 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.15, allocations: 212 kB / 452.8 MB, free: 5.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003491/0.1503, allocations: 250.6 kB / 453 MB, free: 5.527 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.1504, allocations: 29.7 kB / 453.1 MB, free: 5.492 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.1505, allocations: 156.7 kB / 453.2 MB, free: 5.336 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.724e-05/0.1506, allocations: 47.59 kB / 453.3 MB, free: 5.289 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.952e-05/0.1506, allocations: 8 kB / 453.3 MB, free: 5.281 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.64e-05/0.1507, allocations: 346.8 kB / 453.6 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.151, allocations: 93.06 kB / 453.7 MB, free: 4.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004675/0.1515, allocations: 438.9 kB / 454.1 MB, free: 4.242 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008269/0.1523, allocations: 0.5399 MB / 454.7 MB, free: 3.539 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.1524, allocations: 7.938 kB / 454.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001202/0.1536, allocations: 0.4897 MB / 455.2 MB, free: 3.035 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.1536, allocations: 8 kB / 455.2 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.1537, allocations: 16.12 kB / 455.2 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.238e-05/0.1537, allocations: 16 kB / 455.2 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005107/0.1542, allocations: 119.8 kB / 455.3 MB, free: 2.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.777e-05/0.1543, allocations: 23.88 kB / 455.4 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004637/0.1548, allocations: 55.58 kB / 455.4 MB, free: 2.801 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.1548, allocations: 32 kB / 455.4 MB, free: 2.77 MB / 298.7 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 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002985/0.1551, allocations: 193.5 kB / 455.6 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009992/0.1561, allocations: 357.9 kB / 456 MB, free: 2.215 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.1572, allocations: 368.7 kB / 456.3 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.1572, allocations: 8 kB / 456.3 MB, free: 1.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.1573, allocations: 7.984 kB / 456.4 MB, free: 1.832 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.1573, allocations: 0 / 456.4 MB, free: 1.832 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000513/0.1578, allocations: 337 kB / 456.7 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.652e-05/0.1578, allocations: 8.453 kB / 456.7 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006859/0.1585, allocations: 107.8 kB / 456.8 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.1586, allocations: 4 kB / 456.8 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.091e-05/0.1586, allocations: 16 kB / 456.8 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.1586, allocations: 0 / 456.8 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.1586, allocations: 4 kB / 456.8 MB, free: 1.316 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001882/0.1605, allocations: 0.8174 MB / 457.6 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.1607, allocations: 124.6 kB / 457.8 MB, free: 340 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.919e-05/0.1608, allocations: 16 kB / 457.8 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004196/0.1612, allocations: 40.03 kB / 457.8 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.1613, allocations: 0 / 457.8 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/0.1613, allocations: 16 kB / 457.8 MB, free: 268 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002349/0.1616, allocations: 182 kB / 458 MB, free: 88 kB / 298.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1616, allocations: 0 / 458 MB, free: 88 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009177/0.1625, allocations: 75.91 kB / 458.1 MB, free: 12 kB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000337/0.1629, allocations: 131 kB / 458.2 MB, free: 15.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.1642, allocations: 369.6 kB / 458.6 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.1642, allocations: 8.062 kB / 458.6 MB, free: 15.51 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.1644, allocations: 27.98 kB / 458.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/0.166, allocations: 311 kB / 458.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.1684, allocations: 0.9127 MB / 459.8 MB, free: 14.22 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005435/0.169, allocations: 0.8122 MB / 460.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.1692, allocations: 31.44 kB / 460.7 MB, free: 13.35 MB / 314.7 MB Notification: Performance of SimCode: time 6.51e-07/0.1692, allocations: 0 / 460.7 MB, free: 13.35 MB / 314.7 MB Notification: Performance of Templates: time 0.01164/0.1808, allocations: 4.418 MB / 465.1 MB, free: 8.934 MB / 314.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe 2>&1)