Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0008371/0.0008374, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008134/0.0008134, allocations: 168.7 kB / 15.95 MB, free: 204 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.829/1.829, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004661/0.0004664, allocations: 14.66 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3649, allocations: 47.58 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.00277/0.3677, allocations: 1.962 MB / 328.4 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.3691, allocations: 0.6703 MB / 329.1 MB, free: 15.33 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.3693, allocations: 5.906 kB / 329.1 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.3694, allocations: 26.84 kB / 329.1 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001262/0.3696, allocations: 41.31 kB / 329.2 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000412/0.37, allocations: 69.91 kB / 329.2 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003848/0.3704, allocations: 230.8 kB / 329.5 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.3707, allocations: 87.05 kB / 329.6 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.3709, allocations: 98.73 kB / 329.7 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.3711, allocations: 90.95 kB / 329.7 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.572e-05/0.3712, allocations: 10.72 kB / 329.8 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.679e-05/0.3712, allocations: 9.531 kB / 329.8 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.586e-05/0.3713, allocations: 38.06 kB / 329.8 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.3715, allocations: 66.58 kB / 329.9 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.3718, allocations: 206.9 kB / 330.1 MB, free: 14.68 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.391e-05/0.3718, allocations: 3.984 kB / 330.1 MB, free: 14.68 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3719, allocations: 0 / 330.1 MB, free: 14.68 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.3719, allocations: 1.156 kB / 330.1 MB, free: 14.68 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.001283/0.3732, allocations: 0.6307 MB / 330.7 MB, free: 14.09 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.464e-05/0.3732, allocations: 8.594 kB / 330.7 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.507e-05/0.3733, allocations: 26.84 kB / 330.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.3737, allocations: 246.5 kB / 331 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.3738, allocations: 56.77 kB / 331 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.679e-05/0.3739, allocations: 17.56 kB / 331.1 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006918/0.3746, allocations: 256.5 kB / 331.3 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3746, allocations: 1.031 kB / 331.3 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.3746, allocations: 14.08 kB / 331.3 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.3746, allocations: 4.594 kB / 331.3 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005361/0.3752, allocations: 210.5 kB / 331.5 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.3767, allocations: 0.7672 MB / 332.3 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006385/0.3773, allocations: 314.8 kB / 332.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004819/0.3778, allocations: 239.6 kB / 332.8 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.3779, allocations: 2.219 kB / 332.8 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005485/0.3784, allocations: 320.9 kB / 333.2 MB, free: 12.39 MB / 270.1 MB Notification: Performance of pre-optimization done (n=31): time 1.563e-06/0.3784, allocations: 0 / 333.2 MB, free: 12.39 MB / 270.1 MB Notification: Performance of matching and sorting (n=31): time 0.001346/0.3798, allocations: 0.5907 MB / 333.7 MB, free: 11.99 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/0.38, allocations: 203.9 kB / 333.9 MB, free: 11.75 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.3802, allocations: 183.2 kB / 334.1 MB, free: 11.56 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.705e-05/0.3802, allocations: 41.62 kB / 334.2 MB, free: 11.52 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.878e-05/0.3803, allocations: 140.7 kB / 334.3 MB, free: 11.38 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.576e-05/0.3804, allocations: 75 kB / 334.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.486e-05/0.3805, allocations: 4 kB / 334.4 MB, free: 11.3 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3806, allocations: 342.8 kB / 334.7 MB, free: 10.95 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002476/0.3809, allocations: 108.6 kB / 334.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.3812, allocations: 175.3 kB / 335 MB, free: 10.65 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.3815, allocations: 217.8 kB / 335.2 MB, free: 10.42 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3815, allocations: 0 / 335.2 MB, free: 10.42 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007352/0.3823, allocations: 458.2 kB / 335.6 MB, free: 9.945 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.3824, allocations: 97.09 kB / 335.7 MB, free: 9.832 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.3824, allocations: 3.984 kB / 335.7 MB, free: 9.828 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.3824, allocations: 4 kB / 335.7 MB, free: 9.824 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.3827, allocations: 35.92 kB / 335.8 MB, free: 9.789 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.3827, allocations: 4 kB / 335.8 MB, free: 9.785 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.3829, allocations: 47.7 kB / 335.8 MB, free: 9.738 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.3829, allocations: 8 kB / 335.8 MB, free: 9.73 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.0002812/0.3832, allocations: 243.7 kB / 336.1 MB, free: 9.473 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.3832, allocations: 20 kB / 336.1 MB, free: 9.453 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.442e-05/0.3833, allocations: 30.64 kB / 336.1 MB, free: 9.418 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3833, allocations: 7.938 kB / 336.1 MB, free: 9.41 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.3834, allocations: 3.938 kB / 336.1 MB, free: 9.406 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3834, allocations: 0 / 336.1 MB, free: 9.406 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.3849, allocations: 0.9473 MB / 337.1 MB, free: 8.387 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3849, allocations: 8.031 kB / 337.1 MB, free: 8.379 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.385, allocations: 19.98 kB / 337.1 MB, free: 8.359 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3851, allocations: 0 / 337.1 MB, free: 8.359 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/0.3851, allocations: 19.94 kB / 337.1 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3851, allocations: 0 / 337.1 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3851, allocations: 0 / 337.1 MB, free: 8.34 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009533/0.3861, allocations: 0.6216 MB / 337.8 MB, free: 7.688 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.105e-05/0.3862, allocations: 108.8 kB / 337.9 MB, free: 7.562 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.064e-05/0.3862, allocations: 15.95 kB / 337.9 MB, free: 7.547 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.3864, allocations: 27.98 kB / 337.9 MB, free: 7.52 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.698e-05/0.3865, allocations: 23.95 kB / 337.9 MB, free: 7.496 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.3866, allocations: 12 kB / 337.9 MB, free: 7.484 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001086/0.3867, allocations: 131.2 kB / 338.1 MB, free: 7.355 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3867, allocations: 0 / 338.1 MB, free: 7.355 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003302/0.387, allocations: 75.91 kB / 338.1 MB, free: 7.281 MB / 270.1 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.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.0002194/0.3873, allocations: 140.6 kB / 338.3 MB, free: 7.129 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009015/0.3882, allocations: 0.5566 MB / 338.8 MB, free: 6.535 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3882, allocations: 0 / 338.8 MB, free: 6.535 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005449/0.3887, allocations: 406.9 kB / 339.2 MB, free: 6.113 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007117/0.3895, allocations: 135.7 kB / 339.4 MB, free: 5.98 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.3907, allocations: 0.6059 MB / 340 MB, free: 5.352 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/0.3912, allocations: 0.7409 MB / 340.7 MB, free: 4.586 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001976/0.3914, allocations: 49.89 kB / 340.8 MB, free: 4.539 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.228e-05/0.3915, allocations: 19.44 kB / 340.8 MB, free: 4.52 MB / 270.1 MB Notification: Performance of SimCode: time 1.472e-06/0.3915, allocations: 4 kB / 340.8 MB, free: 4.516 MB / 270.1 MB Notification: Performance of Templates: time 0.008671/0.4002, allocations: 3.84 MB / 344.6 MB, free: 0.6758 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)