Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.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.TestSimulatedADC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001443/0.001443, allocations: 178.4 kB / 8.405 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.088/2.088, allocations: 205.3 MB / 214.1 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 82.78 kB / 262.1 MB, free: 1.684 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.09763/0.09763, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.904e-05/1.91e-05, allocations: 0 / 378.9 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.303, allocations: 50.37 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1384/0.4415, allocations: 79.49 MB / 0.4968 GB, free: 2.812 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.4418, allocations: 63.95 kB / 0.4969 GB, free: 2.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02943/0.4712, allocations: 6.175 MB / 0.5029 GB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4713, allocations: 0 / 0.5029 GB, free: 12.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.664e-05/0.4713, allocations: 4 kB / 0.5029 GB, free: 12.55 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001037/0.4724, allocations: 0.5175 MB / 0.5034 GB, free: 11.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.4724, allocations: 11.97 kB / 0.5034 GB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.4726, allocations: 31.62 kB / 0.5035 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008945/0.4735, allocations: 342.5 kB / 0.5038 GB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.4735, allocations: 8 kB / 0.5038 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.566e-05/0.4736, allocations: 12 kB / 0.5038 GB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003604/0.4739, allocations: 112.8 kB / 0.5039 GB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.4752, allocations: 0.5259 MB / 0.5044 GB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.4752, allocations: 4 kB / 0.5044 GB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.4752, allocations: 0 / 0.5044 GB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.4753, allocations: 4 kB / 0.5045 GB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008477/0.4761, allocations: 494.8 kB / 0.5049 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009004/0.477, allocations: 472.9 kB / 0.5054 GB, free: 9.801 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004192/0.4775, allocations: 184.8 kB / 0.5055 GB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008969/0.4784, allocations: 0.5856 MB / 0.5061 GB, free: 8.891 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.647e-05/0.4785, allocations: 38.56 kB / 0.5062 GB, free: 8.844 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 3.096e-06/0.4785, allocations: 0 / 0.5062 GB, free: 8.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0008292/0.4793, allocations: 268.9 kB / 0.5064 GB, free: 8.578 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001636/0.4795, allocations: 178.1 kB / 0.5066 GB, free: 8.367 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.4798, allocations: 184.5 kB / 0.5068 GB, free: 8.184 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.4798, allocations: 25.7 kB / 0.5068 GB, free: 8.152 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.48, allocations: 195.2 kB / 0.507 GB, free: 7.961 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.941e-05/0.48, allocations: 31.89 kB / 0.507 GB, free: 7.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.21e-05/0.4801, allocations: 0 / 0.507 GB, free: 7.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.4802, allocations: 330.8 kB / 0.5073 GB, free: 7.598 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.4804, allocations: 40.88 kB / 0.5074 GB, free: 7.555 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003939/0.4808, allocations: 317.2 kB / 0.5077 GB, free: 7.109 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.481, allocations: 111.8 kB / 0.5078 GB, free: 7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.4811, allocations: 0 / 0.5078 GB, free: 7 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007278/0.4818, allocations: 301.2 kB / 0.5081 GB, free: 6.699 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.4819, allocations: 12 kB / 0.5081 GB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.4819, allocations: 8 kB / 0.5081 GB, free: 6.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.701e-05/0.4819, allocations: 16.81 kB / 0.5081 GB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004886/0.4824, allocations: 91.84 kB / 0.5082 GB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-05/0.4825, allocations: 19.92 kB / 0.5082 GB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.4828, allocations: 35.64 kB / 0.5082 GB, free: 6.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.949e-05/0.4828, allocations: 27.94 kB / 0.5083 GB, free: 6.492 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001871/0.483, allocations: 135.2 kB / 0.5084 GB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006528/0.4837, allocations: 241.4 kB / 0.5086 GB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006746/0.4844, allocations: 252.9 kB / 0.5089 GB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.4844, allocations: 8 kB / 0.5089 GB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.4844, allocations: 0 / 0.5089 GB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.4845, allocations: 4 kB / 0.5089 GB, free: 5.848 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004388/0.4849, allocations: 257.7 kB / 0.5091 GB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.4849, allocations: 4 kB / 0.5091 GB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000579/0.4855, allocations: 75.89 kB / 0.5092 GB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/0.4855, allocations: 4 kB / 0.5092 GB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.4856, allocations: 7.984 kB / 0.5092 GB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.4856, allocations: 0 / 0.5092 GB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.4856, allocations: 4 kB / 0.5092 GB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007783/0.4864, allocations: 0.4893 MB / 0.5097 GB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.4865, allocations: 108.7 kB / 0.5098 GB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.073e-05/0.4866, allocations: 4 kB / 0.5098 GB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003235/0.4869, allocations: 19.94 kB / 0.5098 GB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/0.487, allocations: 3.984 kB / 0.5098 GB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.01e-05/0.4871, allocations: 16 kB / 0.5098 GB, free: 4.766 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002032/0.4873, allocations: 156.4 kB / 0.51 GB, free: 4.617 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4873, allocations: 0 / 0.51 GB, free: 4.617 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006722/0.488, allocations: 48 kB / 0.51 GB, free: 4.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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.0002585/0.4882, allocations: 119.4 kB / 0.5101 GB, free: 4.445 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006093/0.4889, allocations: 222 kB / 0.5103 GB, free: 4.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4889, allocations: 0 / 0.5103 GB, free: 4.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.33e-05/0.4889, allocations: 4.125 kB / 0.5104 GB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.49, allocations: 226.3 kB / 0.5106 GB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.4917, allocations: 394.8 kB / 0.5109 GB, free: 3.582 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005096/0.4923, allocations: 0.8032 MB / 0.5117 GB, free: 2.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.4924, allocations: 31.42 kB / 0.5118 GB, free: 2.719 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4924, allocations: 0 / 0.5118 GB, free: 2.719 MB / 362.7 MB Notification: Performance of Templates: time 0.2715/0.7639, allocations: 3.48 MB / 0.5152 GB, free: 88.94 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.pipe 2>&1)