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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.787/1.787, allocations: 205.4 MB / 222.1 MB, free: 5.875 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000493/0.0004931, allocations: 18.66 kB / 278.9 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3594, allocations: 47.57 MB / 326.4 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002883/0.3624, allocations: 1.905 MB / 328.3 MB, free: 15.9 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.3637, allocations: 0.6821 MB / 329 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.3638, allocations: 6.375 kB / 329 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.3639, allocations: 21.2 kB / 329 MB, free: 15.33 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.3641, allocations: 68.33 kB / 329.1 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000316/0.3644, allocations: 66.45 kB / 329.2 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002843/0.3647, allocations: 166.8 kB / 329.3 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.3649, allocations: 83.03 kB / 329.4 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.3651, allocations: 87.16 kB / 329.5 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.3653, allocations: 96.22 kB / 329.6 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.006e-05/0.3654, allocations: 9.281 kB / 329.6 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.942e-05/0.3654, allocations: 14.56 kB / 329.6 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.182e-05/0.3655, allocations: 41.67 kB / 329.7 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.3656, allocations: 70.5 kB / 329.7 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.3659, allocations: 193.3 kB / 329.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3659, allocations: 0 / 329.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.029e-06/0.3659, allocations: 0 / 329.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.3659, allocations: 3.938 kB / 329.9 MB, free: 14.73 MB / 270.1 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.001161/0.3671, allocations: 0.6307 MB / 330.6 MB, free: 14.14 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.275e-05/0.3672, allocations: 9.719 kB / 330.6 MB, free: 14.14 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.933e-05/0.3673, allocations: 25.06 kB / 330.6 MB, free: 14.12 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.3677, allocations: 243.5 kB / 330.8 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.3678, allocations: 52.09 kB / 330.9 MB, free: 13.83 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.376e-05/0.3678, allocations: 21.78 kB / 330.9 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007763/0.3686, allocations: 268.7 kB / 331.2 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.3686, allocations: 0 / 331.2 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.3687, allocations: 6.281 kB / 331.2 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.3687, allocations: 4.719 kB / 331.2 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005836/0.3693, allocations: 214.4 kB / 331.4 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.371, allocations: 0.7745 MB / 332.2 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006711/0.3717, allocations: 309.9 kB / 332.5 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.3717, allocations: 2.406 kB / 332.5 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005867/0.3723, allocations: 325.3 kB / 332.8 MB, free: 12.54 MB / 270.1 MB Notification: Performance of pre-optimization done (n=31): time 2.314e-06/0.3723, allocations: 0 / 332.8 MB, free: 12.54 MB / 270.1 MB Notification: Performance of matching and sorting (n=31): time 0.00155/0.3739, allocations: 0.7556 MB / 333.5 MB, free: 12.04 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000175/0.374, allocations: 200.6 kB / 333.7 MB, free: 11.81 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/0.3743, allocations: 179.3 kB / 333.9 MB, free: 11.67 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.33e-05/0.3744, allocations: 42.86 kB / 334 MB, free: 11.63 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.3745, allocations: 138 kB / 334.1 MB, free: 11.5 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.62e-05/0.3746, allocations: 75.41 kB / 334.2 MB, free: 11.44 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.008e-05/0.3746, allocations: 10.09 kB / 334.2 MB, free: 11.43 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.3748, allocations: 337 kB / 334.5 MB, free: 11.1 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.3751, allocations: 120.1 kB / 334.6 MB, free: 11 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002841/0.3754, allocations: 175.3 kB / 334.8 MB, free: 10.81 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.3758, allocations: 221.8 kB / 335 MB, free: 10.58 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.3758, allocations: 0 / 335 MB, free: 10.58 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006976/0.3765, allocations: 450.6 kB / 335.4 MB, free: 10.11 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.3766, allocations: 101 kB / 335.5 MB, free: 9.996 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3766, allocations: 0 / 335.5 MB, free: 9.996 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.3766, allocations: 4 kB / 335.5 MB, free: 9.992 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.3768, allocations: 43.91 kB / 335.6 MB, free: 9.949 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.3769, allocations: 4 kB / 335.6 MB, free: 9.945 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.3771, allocations: 47.7 kB / 335.6 MB, free: 9.898 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-05/0.3771, allocations: 12 kB / 335.7 MB, free: 9.887 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],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],$whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * 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.0002714/0.3774, allocations: 243.7 kB / 335.9 MB, free: 9.629 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.055e-05/0.3774, allocations: 19.81 kB / 335.9 MB, free: 9.609 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.905e-05/0.3775, allocations: 26.66 kB / 335.9 MB, free: 9.578 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.3775, allocations: 4 kB / 335.9 MB, free: 9.574 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.3775, allocations: 0 / 335.9 MB, free: 9.574 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.3776, allocations: 3.984 kB / 335.9 MB, free: 9.57 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.3789, allocations: 0.9079 MB / 336.9 MB, free: 8.594 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3789, allocations: 0 / 336.9 MB, free: 8.594 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.379, allocations: 27.92 kB / 336.9 MB, free: 8.566 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3791, allocations: 0 / 336.9 MB, free: 8.566 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/0.3791, allocations: 8 kB / 336.9 MB, free: 8.559 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.3791, allocations: 7.938 kB / 336.9 MB, free: 8.551 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3791, allocations: 0 / 336.9 MB, free: 8.551 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009876/0.3801, allocations: 0.6234 MB / 337.5 MB, free: 7.898 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.263e-05/0.3802, allocations: 104.8 kB / 337.6 MB, free: 7.777 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.48e-05/0.3803, allocations: 15.98 kB / 337.6 MB, free: 7.762 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.3805, allocations: 31.98 kB / 337.7 MB, free: 7.73 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.736e-05/0.3806, allocations: 23.95 kB / 337.7 MB, free: 7.707 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.3806, allocations: 8 kB / 337.7 MB, free: 7.699 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.3807, allocations: 127.2 kB / 337.8 MB, free: 7.574 MB / 270.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3808, allocations: 0 / 337.8 MB, free: 7.574 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003539/0.3811, allocations: 75.98 kB / 337.9 MB, free: 7.5 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,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) * Number of clocked states: 0 () * 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.0001959/0.3813, allocations: 144.6 kB / 338 MB, free: 7.344 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009266/0.3823, allocations: 0.5566 MB / 338.6 MB, free: 6.75 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3823, allocations: 0 / 338.6 MB, free: 6.75 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004854/0.3828, allocations: 403.2 kB / 339 MB, free: 6.332 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005952/0.3834, allocations: 136.2 kB / 339.1 MB, free: 6.199 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.3845, allocations: 0.5967 MB / 339.7 MB, free: 5.582 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.3848, allocations: 0.7487 MB / 340.5 MB, free: 4.805 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001575/0.385, allocations: 53.89 kB / 340.5 MB, free: 4.754 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.18e-05/0.3851, allocations: 23.42 kB / 340.5 MB, free: 4.73 MB / 270.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3851, allocations: 0 / 340.5 MB, free: 4.73 MB / 270.1 MB Notification: Performance of Templates: time 0.007612/0.3927, allocations: 3.824 MB / 344.4 MB, free: 0.9062 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: