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.002898/0.002904, allocations: 181.2 kB / 16.44 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.702/3.702, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0018/0.0018, allocations: 96.33 kB / 270.9 MB, free: 8.363 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.2425/0.2425, allocations: 12.6 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009397/0.0009399, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.174, allocations: 50.38 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC): time 0.004888/0.1789, allocations: 1.882 MB / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.182, allocations: 0.8117 MB / 445 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005272/0.1826, allocations: 15.88 kB / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.1828, allocations: 15.8 kB / 445.1 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004625/0.1833, allocations: 59.78 kB / 445.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001716/0.1851, allocations: 199.5 kB / 445.3 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008141/0.1859, allocations: 191.6 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004437/0.1864, allocations: 103.2 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003563/0.1868, allocations: 83.55 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.1871, allocations: 83.48 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.435e-05/0.1872, allocations: 4 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002204/0.1874, allocations: 35.97 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.1875, allocations: 43.77 kB / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.1877, allocations: 61.58 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005114/0.1882, allocations: 219.5 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1883, allocations: 0 / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.626e-06/0.1883, allocations: 0 / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.1883, allocations: 0 / 446.1 MB, free: 12.66 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001593/0.1899, allocations: 0.5379 MB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/0.19, allocations: 12.03 kB / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.1902, allocations: 39.56 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007129/0.1909, allocations: 290 kB / 447 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.191, allocations: 12.44 kB / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.011e-05/0.1911, allocations: 24 kB / 447 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002694/0.1938, allocations: 0.6545 MB / 447.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.1939, allocations: 0 / 447.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.978e-05/0.194, allocations: 12 kB / 447.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.194, allocations: 7.938 kB / 447.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.1952, allocations: 180.2 kB / 447.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.1964, allocations: 0.5414 MB / 448.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002125/0.1986, allocations: 0.5875 MB / 449 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001132/0.1998, allocations: 0.5895 MB / 449.6 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.028e-05/0.1999, allocations: 46.5 kB / 449.7 MB, free: 8.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 6.192e-06/0.1999, allocations: 0 / 449.7 MB, free: 8.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.00252/0.2024, allocations: 0.5481 MB / 450.2 MB, free: 8.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001919/0.2027, allocations: 212.3 kB / 450.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005108/0.2032, allocations: 233 kB / 450.6 MB, free: 7.676 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.909e-05/0.2034, allocations: 29.7 kB / 450.7 MB, free: 7.641 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.2035, allocations: 191.5 kB / 450.9 MB, free: 7.453 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.916e-05/0.2036, allocations: 23.89 kB / 450.9 MB, free: 7.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-05/0.2037, allocations: 15.94 kB / 450.9 MB, free: 7.414 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.719e-05/0.2038, allocations: 326.8 kB / 451.2 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003161/0.2041, allocations: 60.84 kB / 451.3 MB, free: 7.027 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.2046, allocations: 348 kB / 451.6 MB, free: 6.551 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000437/0.2051, allocations: 123.8 kB / 451.7 MB, free: 6.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/0.2052, allocations: 4 kB / 451.7 MB, free: 6.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001371/0.2065, allocations: 381 kB / 452.1 MB, free: 6.047 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/0.2066, allocations: 12 kB / 452.1 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.2067, allocations: 8 kB / 452.1 MB, free: 6.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.967e-05/0.2067, allocations: 16.78 kB / 452.1 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005895/0.2073, allocations: 91.78 kB / 452.2 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.119e-05/0.2074, allocations: 19.92 kB / 452.3 MB, free: 5.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005501/0.208, allocations: 39.69 kB / 452.3 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.774e-05/0.208, allocations: 28 kB / 452.3 MB, free: 5.836 MB / 298.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 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * 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.0003691/0.2084, allocations: 173.4 kB / 452.5 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0014/0.2098, allocations: 326 kB / 452.8 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.2115, allocations: 336.3 kB / 453.1 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-05/0.2115, allocations: 11.98 kB / 453.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/0.2116, allocations: 0 / 453.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.2116, allocations: 0 / 453.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007765/0.2124, allocations: 305.2 kB / 453.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/0.2124, allocations: 4 kB / 453.4 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008277/0.2133, allocations: 87.89 kB / 453.5 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.742e-05/0.2133, allocations: 4 kB / 453.5 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.276e-05/0.2134, allocations: 7.953 kB / 453.5 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-05/0.2134, allocations: 7.984 kB / 453.6 MB, free: 4.527 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.2135, allocations: 0 / 453.6 MB, free: 4.527 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006018/0.2195, allocations: 0.5754 MB / 454.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.2197, allocations: 108.7 kB / 454.2 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.2199, allocations: 19.98 kB / 454.3 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006237/0.2205, allocations: 31.92 kB / 454.3 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.655e-05/0.2206, allocations: 0 / 454.3 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.866e-05/0.2207, allocations: 15.98 kB / 454.3 MB, free: 3.719 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003533/0.2211, allocations: 172.5 kB / 454.5 MB, free: 3.551 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.2211, allocations: 0 / 454.5 MB, free: 3.551 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001284/0.2224, allocations: 59.94 kB / 454.5 MB, free: 3.492 MB / 298.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 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * 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.0003272/0.2228, allocations: 111.2 kB / 454.6 MB, free: 3.375 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.2242, allocations: 305.7 kB / 454.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.2243, allocations: 0 / 454.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.2244, allocations: 15.98 kB / 455 MB, free: 3.062 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005826/0.2302, allocations: 274.7 kB / 455.2 MB, free: 2.789 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.233, allocations: 0.6367 MB / 455.9 MB, free: 2.113 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.2335, allocations: 0.792 MB / 456.6 MB, free: 1.297 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002296/0.2337, allocations: 23.44 kB / 456.7 MB, free: 1.273 MB / 298.7 MB Notification: Performance of SimCode: time 2.234e-06/0.2337, allocations: 0 / 456.7 MB, free: 1.273 MB / 298.7 MB Notification: Performance of Templates: time 0.02856/0.2623, allocations: 3.618 MB / 460.3 MB, free: 13.65 MB / 314.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)