Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_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.2_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.2+maint.om/package.mo): time 0.001892/0.001892, allocations: 189.9 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.174/1.174, allocations: 194.2 MB / 202.8 MB, free: 8.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001813/0.001813, allocations: 115.9 kB / 247.7 MB, free: 6.25 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.181e-05/1.184e-05, allocations: 4 kB / 297.6 MB, free: 8.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08842/0.08845, allocations: 44.48 MB / 342.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.255/0.3435, allocations: 73.08 MB / 415.1 MB, free: 22.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001835/0.3437, allocations: 73.52 kB / 415.2 MB, free: 22.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01615/0.3599, allocations: 6.885 MB / 422.1 MB, free: 16.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.3599, allocations: 7.984 kB / 422.1 MB, free: 16.59 MB / 314.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.000724/0.3607, allocations: 0.5691 MB / 422.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3607, allocations: 8.031 kB / 422.7 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.461e-05/0.3608, allocations: 31.62 kB / 422.7 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.3612, allocations: 247 kB / 422.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.774e-05/0.3613, allocations: 52.69 kB / 423 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.3613, allocations: 16 kB / 423 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002734/0.3616, allocations: 151 kB / 423.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003375/0.362, allocations: 218.9 kB / 423.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.362, allocations: 0 / 423.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.362, allocations: 7.984 kB / 423.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.362, allocations: 4 kB / 423.4 MB, free: 15.33 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.3633, allocations: 0.726 MB / 424.1 MB, free: 14.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.3636, allocations: 248.1 kB / 424.4 MB, free: 14.49 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.3639, allocations: 196.5 kB / 424.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.3639, allocations: 4 kB / 424.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.3642, allocations: 266.3 kB / 424.8 MB, free: 14.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.885e-06/0.3642, allocations: 0 / 424.8 MB, free: 14.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004505/0.3647, allocations: 269.2 kB / 425.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.3648, allocations: 230.7 kB / 425.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.3649, allocations: 156.8 kB / 425.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.3649, allocations: 35.88 kB / 425.5 MB, free: 13.46 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.004e-05/0.365, allocations: 118.3 kB / 425.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.076e-05/0.3651, allocations: 76.53 kB / 425.7 MB, free: 13.28 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.329e-05/0.3651, allocations: 3.938 kB / 425.7 MB, free: 13.28 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.254e-05/0.3651, allocations: 337.3 kB / 426 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.3653, allocations: 79.48 kB / 426.1 MB, free: 12.89 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.3654, allocations: 185 kB / 426.3 MB, free: 12.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.3656, allocations: 113.3 kB / 426.4 MB, free: 12.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3656, allocations: 4 kB / 426.4 MB, free: 12.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0004527/0.366, allocations: 285.4 kB / 426.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.3661, allocations: 8 kB / 426.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3661, allocations: 0 / 426.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.3661, allocations: 8.125 kB / 426.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.3663, allocations: 47.28 kB / 426.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.3663, allocations: 7.938 kB / 426.7 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.3666, allocations: 29.8 kB / 426.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.3666, allocations: 15.44 kB / 426.8 MB, free: 12.28 MB / 314.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.0001549/0.3668, allocations: 210.1 kB / 427 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/0.3668, allocations: 27.72 kB / 427 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.976e-05/0.3669, allocations: 17.59 kB / 427 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.3669, allocations: 0 / 427 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.3669, allocations: 4 kB / 427 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3669, allocations: 3.984 kB / 427 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007996/0.3677, allocations: 0.7624 MB / 427.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3677, allocations: 4 kB / 427.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.3679, allocations: 23.92 kB / 427.8 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.3679, allocations: 0 / 427.8 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.3679, allocations: 8.031 kB / 427.8 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.3679, allocations: 7.984 kB / 427.8 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3679, allocations: 0 / 427.8 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004023/0.3683, allocations: 424.4 kB / 428.3 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.244e-05/0.3684, allocations: 109.4 kB / 428.4 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.862e-05/0.3685, allocations: 10.81 kB / 428.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.3687, allocations: 31.97 kB / 428.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.291e-05/0.3688, allocations: 19.84 kB / 428.4 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.3689, allocations: 11.88 kB / 428.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.576e-05/0.3689, allocations: 126.9 kB / 428.6 MB, free: 10.63 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003529/0.3693, allocations: 67.84 kB / 428.6 MB, free: 10.56 MB / 314.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.0001719/0.3695, allocations: 129.6 kB / 428.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004426/0.3699, allocations: 318.3 kB / 429.1 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3699, allocations: 0 / 429.1 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002831/0.3702, allocations: 317.7 kB / 429.4 MB, free: 9.965 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006317/0.3709, allocations: 123.6 kB / 429.5 MB, free: 9.859 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007844/0.3717, allocations: 365.1 kB / 429.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.3719, allocations: 0.7732 MB / 430.6 MB, free: 8.742 MB / 314.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3719, allocations: 0 / 430.6 MB, free: 8.742 MB / 314.7 MB Notification: Performance of Templates: time 0.006968/0.3789, allocations: 4.132 MB / 434.8 MB, free: 4.66 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)