Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004112/0.004111, allocations: 171.7 kB / 7.445 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.391/1.391, allocations: 170.6 MB / 178.4 MB, free: 15.4 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001725/0.001724, allocations: 111.9 kB / 217.7 MB, free: 8.156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.254e-06/7.294e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08265/0.08267, allocations: 38.76 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2365/0.3193, allocations: 68 MB / 368.5 MB, free: 484 kB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.3195, allocations: 65.59 kB / 368.6 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd: time 0.01762/0.3371, allocations: 6.931 MB / 375.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.3372, allocations: 4 kB / 375.5 MB, free: 10.87 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009416/0.3382, allocations: 0.5723 MB / 376.1 MB, free: 10.26 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.3382, allocations: 12.03 kB / 376.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.946e-05/0.3383, allocations: 35.7 kB / 376.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004675/0.3388, allocations: 255.9 kB / 376.4 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.3e-05/0.3389, allocations: 41.14 kB / 376.4 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.981e-05/0.3389, allocations: 16 kB / 376.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002975/0.3392, allocations: 159 kB / 376.6 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000357/0.3396, allocations: 207.2 kB / 376.8 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.3396, allocations: 0 / 376.8 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.3396, allocations: 4 kB / 376.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3397, allocations: 7.906 kB / 376.8 MB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.3412, allocations: 0.7273 MB / 377.5 MB, free: 8.934 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003957/0.3416, allocations: 254.5 kB / 377.8 MB, free: 8.746 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.342, allocations: 190.9 kB / 378 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.342, allocations: 8 kB / 378 MB, free: 8.613 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004081/0.3424, allocations: 279.9 kB / 378.2 MB, free: 8.355 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 1.934e-06/0.3424, allocations: 0 / 378.2 MB, free: 8.355 MB / 266.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005478/0.343, allocations: 260.3 kB / 378.5 MB, free: 8.148 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001552/0.3432, allocations: 232.2 kB / 378.7 MB, free: 7.879 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.3434, allocations: 160.7 kB / 378.9 MB, free: 7.734 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.3434, allocations: 36.62 kB / 378.9 MB, free: 7.695 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/0.3435, allocations: 118.4 kB / 379 MB, free: 7.582 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.341e-05/0.3436, allocations: 71.33 kB / 379.1 MB, free: 7.523 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.536e-05/0.3436, allocations: 0 / 379.1 MB, free: 7.523 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3438, allocations: 336.8 kB / 379.4 MB, free: 7.195 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.3439, allocations: 77.92 kB / 379.5 MB, free: 7.145 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.3442, allocations: 184.9 kB / 379.7 MB, free: 6.957 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.3444, allocations: 108.2 kB / 379.8 MB, free: 6.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3444, allocations: 3.906 kB / 379.8 MB, free: 6.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005134/0.3449, allocations: 297.8 kB / 380.1 MB, free: 6.633 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3449, allocations: 4 kB / 380.1 MB, free: 6.629 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.345, allocations: 4 kB / 380.1 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.345, allocations: 4 kB / 380.1 MB, free: 6.621 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.3452, allocations: 47.41 kB / 380.1 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.3453, allocations: 12.06 kB / 380.2 MB, free: 6.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.3455, allocations: 27.83 kB / 380.2 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.93e-05/0.3456, allocations: 19.92 kB / 380.2 MB, free: 6.52 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],dA_Converter.x[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],dA_Converter.x[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],dA_Converter.x[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],dA_Converter.x[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],dA_Converter.x[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],dA_Converter.x[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * 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.0002383/0.3458, allocations: 202.2 kB / 380.4 MB, free: 6.309 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.438e-05/0.3459, allocations: 23.72 kB / 380.4 MB, free: 6.285 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.992e-05/0.346, allocations: 24.83 kB / 380.4 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.383e-06/0.346, allocations: 4 kB / 380.5 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.346, allocations: 0 / 380.5 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.346, allocations: 0 / 380.5 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.3472, allocations: 0.761 MB / 381.2 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3472, allocations: 0 / 381.2 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.3474, allocations: 31.67 kB / 381.2 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3474, allocations: 0 / 381.2 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.656e-05/0.3475, allocations: 7.984 kB / 381.3 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.3475, allocations: 4 kB / 381.3 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3475, allocations: 4.031 kB / 381.3 MB, free: 5.535 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006213/0.3481, allocations: 431.1 kB / 381.7 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.3483, allocations: 126.8 kB / 381.8 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.827e-05/0.3484, allocations: 15.98 kB / 381.8 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.3486, allocations: 27.98 kB / 381.8 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.509e-05/0.3487, allocations: 27.08 kB / 381.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.013e-05/0.3488, allocations: 11.98 kB / 381.9 MB, free: 4.953 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0001004/0.3489, allocations: 129.3 kB / 382 MB, free: 4.844 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003842/0.3493, allocations: 63.84 kB / 382.1 MB, free: 4.781 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.0002207/0.3495, allocations: 133 kB / 382.2 MB, free: 4.648 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004767/0.35, allocations: 321 kB / 382.5 MB, free: 4.395 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.35, allocations: 0 / 382.5 MB, free: 4.395 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.3503, allocations: 310.7 kB / 382.8 MB, free: 4.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006175/0.3509, allocations: 115 kB / 382.9 MB, free: 4.082 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000846/0.3518, allocations: 363.4 kB / 383.3 MB, free: 3.758 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004459/0.3523, allocations: 0.7924 MB / 384.1 MB, free: 2.945 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3523, allocations: 0 / 384.1 MB, free: 2.945 MB / 266.7 MB Notification: Performance of Templates: time 0.0084/0.3607, allocations: 4.153 MB / 388.2 MB, free: 14.79 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)