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.0009393/0.0009394, allocations: 175.9 kB / 16.77 MB, free: 5.043 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.321/1.321, allocations: 205.4 MB / 222.9 MB, free: 8.922 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.0008122/0.0008122, allocations: 88.98 kB / 271.3 MB, free: 8.234 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.0702/0.0702, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003768, allocations: 12 kB / 392.6 MB, free: 66.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07467/0.07506, allocations: 50.38 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC): time 0.001719/0.07682, allocations: 1.886 MB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.07785, allocations: 0.8078 MB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.07801, allocations: 7.938 kB / 445.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.07816, allocations: 43.58 kB / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.07827, allocations: 27.8 kB / 445.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005087/0.07878, allocations: 175.7 kB / 445.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002277/0.07902, allocations: 279.2 kB / 446.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.07922, allocations: 140.8 kB / 446.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.866e-05/0.07933, allocations: 75.58 kB / 446.4 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.07945, allocations: 83.42 kB / 446.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.07949, allocations: 8 kB / 446.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8e-05/0.07957, allocations: 39.95 kB / 446.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.666e-05/0.07964, allocations: 39.78 kB / 446.5 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.243e-05/0.07972, allocations: 117 kB / 446.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.07989, allocations: 227.7 kB / 446.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.07991, allocations: 4 kB / 446.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.07991, allocations: 0 / 446.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.07992, allocations: 4 kB / 446.9 MB, free: 12.17 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.0006431/0.08057, allocations: 0.5417 MB / 447.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.08061, allocations: 8.031 kB / 447.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.08067, allocations: 32.56 kB / 447.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.08094, allocations: 299.2 kB / 447.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.08097, allocations: 16.8 kB / 447.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.081, allocations: 20.38 kB / 447.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009525/0.08196, allocations: 0.6737 MB / 448.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.08199, allocations: 0 / 448.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.08201, allocations: 4 kB / 448.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.08203, allocations: 8 kB / 448.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003446/0.08238, allocations: 180.2 kB / 448.7 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004479/0.08283, allocations: 0.5375 MB / 449.2 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006856/0.08353, allocations: 0.579 MB / 449.8 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003095/0.08385, allocations: 240.4 kB / 450 MB, free: 8.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004936/0.08436, allocations: 0.5856 MB / 450.6 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.08439, allocations: 50.48 kB / 450.6 MB, free: 7.996 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.713e-06/0.0844, allocations: 0 / 450.6 MB, free: 7.996 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.0008513/0.08526, allocations: 483.4 kB / 451.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.17e-05/0.08537, allocations: 212.2 kB / 451.3 MB, free: 7.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/0.08555, allocations: 237 kB / 451.6 MB, free: 7.031 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.08558, allocations: 33.7 kB / 451.6 MB, free: 6.992 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.554e-05/0.08564, allocations: 129 kB / 451.7 MB, free: 6.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.08568, allocations: 31.78 kB / 451.7 MB, free: 6.832 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.076e-05/0.0857, allocations: 8 kB / 451.8 MB, free: 6.824 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.887e-05/0.08576, allocations: 338.8 kB / 452.1 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.08587, allocations: 60.83 kB / 452.1 MB, free: 6.426 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.08607, allocations: 352 kB / 452.5 MB, free: 5.945 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.08637, allocations: 424.3 kB / 452.9 MB, free: 5.398 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.08638, allocations: 4 kB / 452.9 MB, free: 5.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004476/0.08684, allocations: 389.7 kB / 453.3 MB, free: 5.008 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.08686, allocations: 12.03 kB / 453.3 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.08688, allocations: 12 kB / 453.3 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.08691, allocations: 12 kB / 453.3 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.08713, allocations: 87.84 kB / 453.4 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.08715, allocations: 19.92 kB / 453.4 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.08734, allocations: 47.56 kB / 453.5 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.08737, allocations: 27.98 kB / 453.5 MB, free: 4.793 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.0001371/0.08751, allocations: 174.3 kB / 453.7 MB, free: 4.613 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004807/0.088, allocations: 325.1 kB / 454 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005063/0.08851, allocations: 341.1 kB / 454.3 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.08853, allocations: 4 kB / 454.3 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.08854, allocations: 8 kB / 454.3 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.08855, allocations: 11.86 kB / 454.3 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.0888, allocations: 297.2 kB / 454.6 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.08882, allocations: 7.984 kB / 454.6 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002502/0.08907, allocations: 83.89 kB / 454.7 MB, free: 3.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.08909, allocations: 4 kB / 454.7 MB, free: 3.492 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.08911, allocations: 4 kB / 454.7 MB, free: 3.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.08912, allocations: 4 kB / 454.7 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.08912, allocations: 4 kB / 454.7 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005718/0.0897, allocations: 0.5428 MB / 455.3 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.08975, allocations: 108.6 kB / 455.4 MB, free: 2.789 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.248e-05/0.0898, allocations: 19.98 kB / 455.4 MB, free: 2.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.09001, allocations: 31.98 kB / 455.4 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.202e-05/0.09005, allocations: 7.938 kB / 455.5 MB, free: 2.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.09007, allocations: 11.98 kB / 455.5 MB, free: 2.719 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001109/0.09019, allocations: 172.5 kB / 455.6 MB, free: 2.551 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.0902, allocations: 3.938 kB / 455.6 MB, free: 2.547 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003979/0.0906, allocations: 56 kB / 455.7 MB, free: 2.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.0001395/0.09075, allocations: 123.4 kB / 455.8 MB, free: 2.363 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004289/0.09118, allocations: 288.7 kB / 456.1 MB, free: 2.082 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.09119, allocations: 0 / 456.1 MB, free: 2.082 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.987e-05/0.09124, allocations: 17.42 kB / 456.1 MB, free: 2.066 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008097/0.09206, allocations: 277.9 kB / 456.4 MB, free: 1.789 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008578/0.09293, allocations: 0.6406 MB / 457 MB, free: 1.109 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001639/0.0931, allocations: 0.7842 MB / 457.8 MB, free: 308 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.35e-05/0.09316, allocations: 31.42 kB / 457.8 MB, free: 276 kB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.09317, allocations: 0 / 457.8 MB, free: 276 kB / 298.7 MB Notification: Performance of Templates: time 0.005269/0.09844, allocations: 3.675 MB / 461.5 MB, free: 12.59 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)