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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 104.7 kB / 17.06 MB, free: 6.004 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.001247/0.001247, allocations: 196 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.00143/0.00143, allocations: 51.94 kB / 327.9 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1216, allocations: 46.61 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.00517/0.1268, allocations: 2.333 MB / 376.8 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.1289, allocations: 0.7134 MB / 377.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002721/0.1292, allocations: 4 kB / 377.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.1295, allocations: 35.66 kB / 377.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002644/0.1298, allocations: 51.48 kB / 377.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.1303, allocations: 95.75 kB / 377.7 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005172/0.1308, allocations: 263 kB / 378 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003497/0.1312, allocations: 111 kB / 378.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003147/0.1315, allocations: 123.6 kB / 378.2 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003077/0.1318, allocations: 111.6 kB / 378.3 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.337e-05/0.1319, allocations: 27.92 kB / 378.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.098e-05/0.132, allocations: 24 kB / 378.4 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.318e-05/0.1321, allocations: 43.84 kB / 378.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.1323, allocations: 123.5 kB / 378.5 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.1327, allocations: 282.9 kB / 378.8 MB, free: 236 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1327, allocations: 0 / 378.8 MB, free: 236 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1327, allocations: 0 / 378.8 MB, free: 236 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1328, allocations: 0 / 378.8 MB, free: 236 kB / 318.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.243/0.3758, allocations: 0.6613 MB / 379.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.3759, allocations: 9.625 kB / 379.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.507e-05/0.3759, allocations: 27.58 kB / 379.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003976/0.3764, allocations: 246.3 kB / 379.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.558e-05/0.3764, allocations: 49.8 kB / 379.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.3765, allocations: 18.64 kB / 379.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006481/0.3771, allocations: 262.7 kB / 380.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.3772, allocations: 3.938 kB / 380.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.3772, allocations: 7.484 kB / 380.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.3772, allocations: 8.594 kB / 380.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005233/0.3778, allocations: 201 kB / 380.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.3791, allocations: 0.7467 MB / 381 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006319/0.3798, allocations: 306.5 kB / 381.3 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005141/0.3803, allocations: 223.3 kB / 381.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.3803, allocations: 1.375 kB / 381.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000585/0.3809, allocations: 326.1 kB / 381.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.904e-06/0.381, allocations: 3.766 kB / 381.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001311/0.3823, allocations: 0.5662 MB / 382.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.69e-05/0.3824, allocations: 204.4 kB / 382.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.3825, allocations: 184.5 kB / 382.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.3826, allocations: 38.75 kB / 382.8 MB, free: 11.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.42e-05/0.3827, allocations: 132.8 kB / 383 MB, free: 11.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.058e-05/0.3827, allocations: 82 kB / 383.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.3828, allocations: 67.83 kB / 383.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.92e-05/0.3829, allocations: 337.8 kB / 383.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.3832, allocations: 105.5 kB / 383.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002908/0.3835, allocations: 176.6 kB / 383.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005209/0.384, allocations: 410.8 kB / 384.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.384, allocations: 1.094 kB / 384.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006857/0.3847, allocations: 442.8 kB / 384.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.798e-05/0.3848, allocations: 100.8 kB / 384.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3848, allocations: 1.812 kB / 384.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.3848, allocations: 8.094 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.385, allocations: 36.75 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.3851, allocations: 4.359 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.3852, allocations: 37.42 kB / 384.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.484e-05/0.3853, allocations: 12.66 kB / 384.8 MB, free: 10.12 MB / 318.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 (dA_Converter.y,$PRE.dA_Converter.y,aD_Converter.z,$PRE.aD_Converter.z,dA_Converter.x[7],dA_Converter.x[6],dA_Converter.x[5],dA_Converter.x[4],dA_Converter.x[3],dA_Converter.x[2],dA_Converter.x[1],aD_Converter.y[7],$PRE.aD_Converter.y[7],aD_Converter.y[6],$PRE.aD_Converter.y[6],aD_Converter.y[5],$PRE.aD_Converter.y[5],aD_Converter.y[4],$PRE.aD_Converter.y[4],aD_Converter.y[3],$PRE.aD_Converter.y[3],aD_Converter.y[2],$PRE.aD_Converter.y[2],aD_Converter.y[1],$PRE.aD_Converter.y[1],dA_Converter.trig,pulse.sampling,pulse.np,$PRE.pulse.np,pulse.T0,$PRE.pulse.T0,$whenCondition2,$whenCondition1,$whenCondition3,dA_Converter.vout,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002106/0.3855, allocations: 246.6 kB / 385 MB, free: 9.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.3855, allocations: 22.59 kB / 385 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.824e-05/0.3856, allocations: 23.97 kB / 385 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.3856, allocations: 6.031 kB / 385 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.3856, allocations: 1.547 kB / 385 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.3856, allocations: 5.344 kB / 385.1 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.3871, allocations: 0.9317 MB / 386 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3871, allocations: 4.844 kB / 386 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.3873, allocations: 24.09 kB / 386 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3873, allocations: 5.062 kB / 386 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/0.3873, allocations: 11.09 kB / 386 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3873, allocations: 1.156 kB / 386 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3873, allocations: 5.422 kB / 386 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.3884, allocations: 0.6083 MB / 386.6 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.361e-05/0.3884, allocations: 100.8 kB / 386.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.867e-05/0.3885, allocations: 15.88 kB / 386.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.3887, allocations: 21.97 kB / 386.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.747e-05/0.3888, allocations: 20.81 kB / 386.8 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.3888, allocations: 13.95 kB / 386.8 MB, free: 8.852 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.568e-05/0.3889, allocations: 128.5 kB / 386.9 MB, free: 8.762 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3889, allocations: 0 / 386.9 MB, free: 8.762 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003411/0.3893, allocations: 75.83 kB / 387 MB, free: 8.75 MB / 318.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001597/0.3895, allocations: 136.2 kB / 387.1 MB, free: 8.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008733/0.3903, allocations: 0.5365 MB / 387.7 MB, free: 8.352 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3904, allocations: 0 / 387.7 MB, free: 8.352 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004879/0.3908, allocations: 397.2 kB / 388.1 MB, free: 8.117 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007485/0.3916, allocations: 157.9 kB / 388.2 MB, free: 8.074 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.3927, allocations: 0.5234 MB / 388.7 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.3929, allocations: 0.7479 MB / 389.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001559/0.3931, allocations: 52.81 kB / 389.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.539e-05/0.3932, allocations: 22.14 kB / 389.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3932, allocations: 4 kB / 389.6 MB, free: 7.074 MB / 318.1 MB Notification: Performance of Templates: time 0.01134/0.4045, allocations: 4.378 MB / 394 MB, free: 6.691 MB / 318.1 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)