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.001458/0.001458, allocations: 176.1 kB / 16.45 MB, free: 5.684 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.327/1.327, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.0007228/0.0007227, allocations: 96.92 kB / 270.9 MB, free: 8.348 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.1065/0.1065, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004245/0.0004245, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06599/0.06643, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.002052/0.06852, allocations: 2.265 MB / 444.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.06958, allocations: 0.9052 MB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.06974, allocations: 11.94 kB / 445.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.06988, allocations: 43.58 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.07005, allocations: 47.64 kB / 445.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.0705, allocations: 195.6 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002329/0.07074, allocations: 331 kB / 446.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.07093, allocations: 131.4 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.593e-05/0.07102, allocations: 91.52 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.07113, allocations: 107.3 kB / 446.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.92e-05/0.07116, allocations: 12 kB / 446.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.574e-05/0.07126, allocations: 43.91 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.52e-05/0.07132, allocations: 51.75 kB / 446.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.408e-05/0.07139, allocations: 77.52 kB / 446.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.07158, allocations: 271.6 kB / 446.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.0716, allocations: 0 / 446.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.0716, allocations: 0 / 446.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.07162, allocations: 4 kB / 446.9 MB, free: 11.87 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.0007392/0.07236, allocations: 0.5961 MB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.731e-05/0.07239, allocations: 8.031 kB / 447.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.173e-05/0.07246, allocations: 43.48 kB / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.07276, allocations: 310.8 kB / 447.9 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.07279, allocations: 20.56 kB / 447.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.625e-05/0.07283, allocations: 24 kB / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.07393, allocations: 0.7753 MB / 448.7 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.07396, allocations: 4 kB / 448.7 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.07399, allocations: 8 kB / 448.7 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.074, allocations: 8 kB / 448.7 MB, free: 9.957 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005035/0.07451, allocations: 255.6 kB / 449 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/0.07509, allocations: 0.7722 MB / 449.7 MB, free: 8.859 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008699/0.07597, allocations: 0.6497 MB / 450.4 MB, free: 8.137 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003873/0.07637, allocations: 283 kB / 450.7 MB, free: 7.848 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000461/0.07684, allocations: 0.5895 MB / 451.3 MB, free: 7.129 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.07687, allocations: 42.56 kB / 451.3 MB, free: 7.078 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.844e-06/0.07688, allocations: 0 / 451.3 MB, free: 7.078 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.00104/0.07792, allocations: 0.5604 MB / 451.9 MB, free: 6.512 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.273e-05/0.07801, allocations: 211.8 kB / 452.1 MB, free: 6.262 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001786/0.07819, allocations: 246.6 kB / 452.3 MB, free: 6.012 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.07822, allocations: 37.7 kB / 452.3 MB, free: 5.969 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.429e-05/0.07829, allocations: 160.7 kB / 452.5 MB, free: 5.809 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.07833, allocations: 39.69 kB / 452.5 MB, free: 5.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/0.07835, allocations: 15.94 kB / 452.6 MB, free: 5.754 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.52e-05/0.07841, allocations: 346.8 kB / 452.9 MB, free: 5.406 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.07858, allocations: 89.06 kB / 453 MB, free: 5.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.07886, allocations: 438.9 kB / 453.4 MB, free: 4.723 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002284/0.07909, allocations: 167.9 kB / 453.6 MB, free: 4.559 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.07911, allocations: 7.938 kB / 453.6 MB, free: 4.551 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006414/0.07975, allocations: 0.4893 MB / 454.1 MB, free: 4.055 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.07978, allocations: 8 kB / 454.1 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.07979, allocations: 12 kB / 454.1 MB, free: 4.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.07982, allocations: 20 kB / 454.1 MB, free: 4.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002872/0.08011, allocations: 124.3 kB / 454.2 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.08014, allocations: 27.92 kB / 454.3 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002451/0.08039, allocations: 47.69 kB / 454.3 MB, free: 3.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.08042, allocations: 35.94 kB / 454.3 MB, free: 3.785 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.000136/0.08056, allocations: 190 kB / 454.5 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000536/0.0811, allocations: 369.8 kB / 454.9 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005733/0.08169, allocations: 360.8 kB / 455.2 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.0817, allocations: 4 kB / 455.2 MB, free: 2.859 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.08171, allocations: 3.938 kB / 455.2 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.08172, allocations: 7.984 kB / 455.3 MB, free: 2.848 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002708/0.082, allocations: 341 kB / 455.6 MB, free: 2.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.08201, allocations: 4 kB / 455.6 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003731/0.08239, allocations: 107.9 kB / 455.7 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.08241, allocations: 4 kB / 455.7 MB, free: 2.352 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.08243, allocations: 11.98 kB / 455.7 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.08244, allocations: 0 / 455.7 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.08245, allocations: 4 kB / 455.7 MB, free: 2.336 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.08354, allocations: 0.8175 MB / 456.5 MB, free: 1.492 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.804e-05/0.0836, allocations: 124.6 kB / 456.7 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.08365, allocations: 16 kB / 456.7 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.08391, allocations: 31.97 kB / 456.7 MB, free: 1.305 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.836e-05/0.08395, allocations: 8.062 kB / 456.7 MB, free: 1.297 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.08397, allocations: 15.98 kB / 456.7 MB, free: 1.281 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00012/0.0841, allocations: 182 kB / 456.9 MB, free: 1.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0841, allocations: 0 / 456.9 MB, free: 1.102 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004422/0.08455, allocations: 71.91 kB / 457 MB, free: 1.031 MB / 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.0001314/0.08469, allocations: 123.1 kB / 457.1 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006008/0.0853, allocations: 376.5 kB / 457.5 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.08531, allocations: 4 kB / 457.5 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.673e-05/0.08541, allocations: 33.05 kB / 457.5 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008843/0.08631, allocations: 311.3 kB / 457.8 MB, free: 200 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.08765, allocations: 0.9202 MB / 458.7 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.088, allocations: 0.8084 MB / 459.5 MB, free: 14.4 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.96e-05/0.08808, allocations: 35.38 kB / 459.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.08809, allocations: 0 / 459.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of Templates: time 0.00593/0.09402, allocations: 4.376 MB / 463.9 MB, free: 9.984 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)