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.00113/0.00113, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001531/0.001531, allocations: 199.2 kB / 16.14 MB, free: 6.707 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.507/1.507, allocations: 205.1 MB / 222 MB, free: 4.988 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.001195/0.001195, allocations: 55.91 kB / 278.1 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3157, allocations: 46.62 MB / 324.7 MB, free: 1.832 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005522/0.3213, allocations: 2.382 MB / 327.1 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.323, allocations: 0.7154 MB / 327.8 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.3232, allocations: 2.438 kB / 327.8 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.3233, allocations: 26.41 kB / 327.8 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.3235, allocations: 45.98 kB / 327.8 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.3238, allocations: 78.52 kB / 327.9 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002936/0.3241, allocations: 241.5 kB / 328.2 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002548/0.3244, allocations: 106.1 kB / 328.3 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.3246, allocations: 103.2 kB / 328.4 MB, free: 15 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.3248, allocations: 116.9 kB / 328.5 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.209e-05/0.3249, allocations: 14.56 kB / 328.5 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.875e-05/0.3249, allocations: 15.38 kB / 328.5 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.244e-05/0.325, allocations: 42.28 kB / 328.5 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.3252, allocations: 120.1 kB / 328.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003575/0.3256, allocations: 260.7 kB / 328.9 MB, free: 14.62 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.3256, allocations: 5.219 kB / 328.9 MB, free: 14.61 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3256, allocations: 0 / 328.9 MB, free: 14.61 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.3256, allocations: 0 / 328.9 MB, free: 14.61 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.001352/0.327, allocations: 0.6632 MB / 329.6 MB, free: 14 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.535e-05/0.327, allocations: 9.281 kB / 329.6 MB, free: 14 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.3272, allocations: 31.2 kB / 329.6 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/0.3276, allocations: 243.5 kB / 329.9 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.3278, allocations: 53.59 kB / 329.9 MB, free: 13.68 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.652e-05/0.3278, allocations: 20.94 kB / 329.9 MB, free: 13.68 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008185/0.3286, allocations: 254.7 kB / 330.2 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.3287, allocations: 9.312 kB / 330.2 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.3287, allocations: 10.81 kB / 330.2 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.3287, allocations: 3.938 kB / 330.2 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005579/0.3293, allocations: 198.7 kB / 330.4 MB, free: 13.44 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.3308, allocations: 0.7643 MB / 331.2 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000633/0.3314, allocations: 287.6 kB / 331.5 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004782/0.3319, allocations: 238.5 kB / 331.7 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.3319, allocations: 1.531 kB / 331.7 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005573/0.3325, allocations: 307.6 kB / 332 MB, free: 12.3 MB / 270.1 MB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.3325, allocations: 1.938 kB / 332 MB, free: 12.3 MB / 270.1 MB Notification: Performance of matching and sorting (n=31): time 0.001269/0.3338, allocations: 0.5705 MB / 332.6 MB, free: 11.99 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/0.334, allocations: 200 kB / 332.8 MB, free: 11.77 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000209/0.3342, allocations: 187.9 kB / 332.9 MB, free: 11.62 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.3342, allocations: 42.66 kB / 333 MB, free: 11.57 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.3343, allocations: 138.2 kB / 333.1 MB, free: 11.45 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.599e-05/0.3344, allocations: 79.7 kB / 333.2 MB, free: 11.37 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.3345, allocations: 70.02 kB / 333.3 MB, free: 11.29 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3347, allocations: 334.8 kB / 333.6 MB, free: 10.96 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.3349, allocations: 108.6 kB / 333.7 MB, free: 10.85 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/0.3352, allocations: 175.1 kB / 333.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005599/0.3358, allocations: 405.6 kB / 334.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.3358, allocations: 0 / 334.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006846/0.3365, allocations: 446.2 kB / 334.7 MB, free: 9.75 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.783e-05/0.3366, allocations: 89.09 kB / 334.8 MB, free: 9.645 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.3366, allocations: 12.06 kB / 334.8 MB, free: 9.633 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.3366, allocations: 4 kB / 334.8 MB, free: 9.629 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000197/0.3368, allocations: 39.86 kB / 334.8 MB, free: 9.59 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.3368, allocations: 4 kB / 334.8 MB, free: 9.586 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.3371, allocations: 43.61 kB / 334.9 MB, free: 9.543 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.3371, allocations: 12 kB / 334.9 MB, free: 9.531 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 (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.0002668/0.3374, allocations: 243.8 kB / 335.1 MB, free: 9.27 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.125e-05/0.3374, allocations: 23.72 kB / 335.2 MB, free: 9.246 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.703e-05/0.3375, allocations: 30.58 kB / 335.2 MB, free: 9.211 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.3375, allocations: 0 / 335.2 MB, free: 9.211 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.3376, allocations: 4 kB / 335.2 MB, free: 9.207 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3376, allocations: 0 / 335.2 MB, free: 9.207 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.339, allocations: 0.928 MB / 336.1 MB, free: 8.207 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.339, allocations: 0 / 336.1 MB, free: 8.207 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.3392, allocations: 23.92 kB / 336.1 MB, free: 8.184 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.3392, allocations: 4 kB / 336.1 MB, free: 8.18 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.804e-05/0.3392, allocations: 11.98 kB / 336.2 MB, free: 8.168 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.3392, allocations: 0 / 336.2 MB, free: 8.168 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3392, allocations: 0 / 336.2 MB, free: 8.168 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009317/0.3402, allocations: 0.6128 MB / 336.8 MB, free: 7.523 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.389e-05/0.3402, allocations: 100.8 kB / 336.9 MB, free: 7.406 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.363e-05/0.3403, allocations: 23.94 kB / 336.9 MB, free: 7.383 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.3405, allocations: 23.97 kB / 336.9 MB, free: 7.359 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.289e-05/0.3406, allocations: 23.97 kB / 336.9 MB, free: 7.336 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.3407, allocations: 12 kB / 336.9 MB, free: 7.324 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.3408, allocations: 135.2 kB / 337.1 MB, free: 7.191 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3408, allocations: 0 / 337.1 MB, free: 7.191 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003552/0.3412, allocations: 71.84 kB / 337.2 MB, free: 7.121 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 (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.0001875/0.3414, allocations: 137 kB / 337.3 MB, free: 6.973 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0008214/0.3422, allocations: 0.537 MB / 337.8 MB, free: 6.398 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3422, allocations: 0 / 337.8 MB, free: 6.398 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004869/0.3427, allocations: 406.8 kB / 338.2 MB, free: 5.977 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007073/0.3434, allocations: 136.8 kB / 338.4 MB, free: 5.844 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.3446, allocations: 0.597 MB / 339 MB, free: 5.223 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.3449, allocations: 0.7409 MB / 339.7 MB, free: 4.457 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001625/0.3451, allocations: 49.84 kB / 339.7 MB, free: 4.41 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.526e-05/0.3452, allocations: 23.44 kB / 339.8 MB, free: 4.387 MB / 270.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3452, allocations: 0 / 339.8 MB, free: 4.387 MB / 270.1 MB Notification: Performance of Templates: time 0.007903/0.3531, allocations: 3.992 MB / 343.8 MB, free: 408 kB / 270.1 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)