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.002883/0.002882, allocations: 107.4 kB / 16.45 MB, free: 6.438 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.003088/0.003088, allocations: 189.5 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.869/1.869, 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.07821/0.07821, allocations: 12.58 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.001791/0.001791, allocations: 91.22 kB / 394.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1187, allocations: 49.4 MB / 443.6 MB, free: 488 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.005125/0.1239, allocations: 2.69 MB / 446.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002187/0.1261, allocations: 0.9553 MB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002707/0.1264, allocations: 11.94 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.1267, allocations: 59.39 kB / 447.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002863/0.127, allocations: 63.44 kB / 447.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000786/0.1278, allocations: 235.5 kB / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004329/0.1282, allocations: 382.9 kB / 447.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003887/0.1286, allocations: 192.7 kB / 448.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.1288, allocations: 143.4 kB / 448.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.1291, allocations: 151.2 kB / 448.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.683e-05/0.1292, allocations: 32 kB / 448.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.1293, allocations: 67.97 kB / 448.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.1294, allocations: 79.73 kB / 448.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001615/0.1296, allocations: 163 kB / 448.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005242/0.1301, allocations: 394.6 kB / 449.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1301, allocations: 0 / 449.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1302, allocations: 0 / 449.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.1302, allocations: 0 / 449.1 MB, free: 10.87 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001255/0.1314, allocations: 0.6468 MB / 449.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.1315, allocations: 12.03 kB / 449.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.775e-05/0.1316, allocations: 36.47 kB / 449.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005607/0.1321, allocations: 339.9 kB / 450.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.1322, allocations: 20.94 kB / 450.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.167e-05/0.1322, allocations: 32.31 kB / 450.2 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.1337, allocations: 0.7441 MB / 451 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.1337, allocations: 0 / 451 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.1337, allocations: 12 kB / 451 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1337, allocations: 4 kB / 451 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005668/0.1343, allocations: 227.7 kB / 451.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009334/0.1353, allocations: 0.7759 MB / 452 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.1364, allocations: 0.6261 MB / 452.6 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004711/0.1369, allocations: 263.4 kB / 452.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006633/0.1376, allocations: 0.5895 MB / 453.5 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.1377, allocations: 38.56 kB / 453.5 MB, free: 6.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 4.108e-06/0.1377, allocations: 4 kB / 453.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001229/0.1389, allocations: 0.5174 MB / 454 MB, free: 5.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/0.1391, allocations: 219.7 kB / 454.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.1394, allocations: 250.7 kB / 454.5 MB, free: 5.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.823e-05/0.1394, allocations: 37.64 kB / 454.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.1395, allocations: 160.7 kB / 454.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.404e-05/0.1396, allocations: 43.62 kB / 454.7 MB, free: 4.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1397, allocations: 90.16 kB / 454.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1399, allocations: 346.8 kB / 455.1 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.14, allocations: 81.08 kB / 455.2 MB, free: 4.293 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.1405, allocations: 439 kB / 455.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006067/0.1411, allocations: 0.5281 MB / 456.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1411, allocations: 3.938 kB / 456.2 MB, free: 3.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009565/0.1421, allocations: 493.4 kB / 456.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.1421, allocations: 12.22 kB / 456.7 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.1422, allocations: 12 kB / 456.7 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.798e-05/0.1422, allocations: 19.98 kB / 456.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.1426, allocations: 119.8 kB / 456.8 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.501e-05/0.1426, allocations: 23.92 kB / 456.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.1429, allocations: 51.58 kB / 456.9 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.817e-05/0.143, allocations: 32 kB / 456.9 MB, free: 2.25 MB / 334.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.000205/0.1432, allocations: 196 kB / 457.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000662/0.1439, allocations: 342.1 kB / 457.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007073/0.1446, allocations: 360.5 kB / 457.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.1446, allocations: 8 kB / 457.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.1446, allocations: 0 / 457.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.403e-06/0.1446, allocations: 11.94 kB / 457.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003993/0.1451, allocations: 341 kB / 458.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.1451, allocations: 0 / 458.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003867/0.1455, allocations: 103.8 kB / 458.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.1455, allocations: 4 kB / 458.3 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.1455, allocations: 12 kB / 458.3 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.1455, allocations: 7.984 kB / 458.3 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1455, allocations: 0 / 458.3 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.1473, allocations: 0.7747 MB / 459 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1474, allocations: 116.7 kB / 459.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.485e-05/0.1475, allocations: 16 kB / 459.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.1477, allocations: 23.97 kB / 459.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.766e-05/0.1478, allocations: 8 kB / 459.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-05/0.1478, allocations: 11.98 kB / 459.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.148, allocations: 182 kB / 459.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.148, allocations: 0 / 459.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005169/0.1486, allocations: 87.91 kB / 459.5 MB, free: 15.57 MB / 350.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.0003186/0.1489, allocations: 119.1 kB / 459.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007975/0.1497, allocations: 355.8 kB / 459.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1497, allocations: 1.812 kB / 460 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.1498, allocations: 27.92 kB / 460 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.1511, allocations: 311.3 kB / 460.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.153, allocations: 0.7467 MB / 461 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.1536, allocations: 0.812 MB / 461.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.1537, allocations: 35.28 kB / 461.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.199e-05/0.1538, allocations: 39.42 kB / 461.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of SimCode: time 5.72e-06/0.1538, allocations: 0 / 461.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of Templates: time 0.009846/0.1636, allocations: 4.795 MB / 466.7 MB, free: 8.262 MB / 350.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)