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.001168/0.001168, allocations: 111.7 kB / 17.06 MB, free: 5.973 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.00125/0.00125, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.615/1.615, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001265/0.001266, allocations: 55.92 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1076, allocations: 46.61 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003609/0.1113, allocations: 2.337 MB / 376.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.1125, allocations: 0.7095 MB / 377.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.1126, allocations: 4 kB / 377.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.1128, allocations: 31.66 kB / 377.6 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.1129, allocations: 59.48 kB / 377.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003542/0.1133, allocations: 91.75 kB / 377.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003044/0.1136, allocations: 263.1 kB / 378 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.1139, allocations: 115 kB / 378.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.1141, allocations: 123.6 kB / 378.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.1142, allocations: 115.6 kB / 378.3 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.1143, allocations: 20 kB / 378.3 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.479e-05/0.1143, allocations: 27.94 kB / 378.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.982e-05/0.1144, allocations: 43.84 kB / 378.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.1146, allocations: 119.5 kB / 378.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.1148, allocations: 290.9 kB / 378.8 MB, free: 220 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1149, allocations: 0 / 378.8 MB, free: 220 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1149, allocations: 0 / 378.8 MB, free: 220 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.1149, allocations: 0 / 378.8 MB, free: 220 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.2594/0.3743, allocations: 0.6617 MB / 379.5 MB, free: 13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.3744, allocations: 8.844 kB / 379.5 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.615e-05/0.3745, allocations: 28.22 kB / 379.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.3748, allocations: 243.6 kB / 379.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.698e-05/0.3749, allocations: 47.23 kB / 379.8 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.128e-05/0.375, allocations: 19.5 kB / 379.8 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006549/0.3757, allocations: 262.2 kB / 380.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3757, allocations: 5.812 kB / 380.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.3757, allocations: 9.094 kB / 380.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3757, allocations: 7.656 kB / 380.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005123/0.3763, allocations: 200.5 kB / 380.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.3776, allocations: 0.7445 MB / 381 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005908/0.3782, allocations: 305.7 kB / 381.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005077/0.3787, allocations: 225.1 kB / 381.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.3788, allocations: 2.031 kB / 381.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006209/0.3794, allocations: 320.6 kB / 381.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 3.317e-06/0.3794, allocations: 3.875 kB / 381.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001295/0.3807, allocations: 0.5651 MB / 382.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.363e-05/0.3808, allocations: 208.5 kB / 382.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.381, allocations: 182.1 kB / 382.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.381, allocations: 41.5 kB / 382.8 MB, free: 11.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.604e-05/0.3811, allocations: 136.9 kB / 383 MB, free: 11.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.093e-05/0.3812, allocations: 77.77 kB / 383.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.3813, allocations: 69.44 kB / 383.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.19e-05/0.3814, allocations: 331.8 kB / 383.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.3816, allocations: 112.3 kB / 383.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002971/0.3819, allocations: 179.6 kB / 383.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000532/0.3825, allocations: 410.4 kB / 384.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3825, allocations: 0 / 384.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008525/0.3834, allocations: 444.8 kB / 384.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.3834, allocations: 91.44 kB / 384.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3834, allocations: 5.891 kB / 384.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.3835, allocations: 7.594 kB / 384.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.3837, allocations: 40.97 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.3837, allocations: 4.5 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.3839, allocations: 37.42 kB / 384.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/0.3839, allocations: 15.3 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.0002609/0.3842, allocations: 235.8 kB / 385 MB, free: 9.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.358e-05/0.3843, allocations: 27.22 kB / 385 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.246e-05/0.3843, allocations: 24.16 kB / 385 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3843, allocations: 5.781 kB / 385.1 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.3844, allocations: 1.938 kB / 385.1 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.3844, allocations: 1.359 kB / 385.1 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.3859, allocations: 0.9325 MB / 386 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3859, allocations: 3.938 kB / 386 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.386, allocations: 28.69 kB / 386 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.386, allocations: 1.406 kB / 386 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.526e-05/0.3861, allocations: 13.7 kB / 386 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.3861, allocations: 1.375 kB / 386 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.3861, allocations: 0.7969 kB / 386 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009946/0.3871, allocations: 0.6099 MB / 386.6 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/0.3872, allocations: 103.8 kB / 386.8 MB, free: 8.871 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.513e-05/0.3872, allocations: 16.59 kB / 386.8 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.3875, allocations: 22.42 kB / 386.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.3876, allocations: 21.61 kB / 386.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.068e-05/0.3876, allocations: 10.27 kB / 386.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000113/0.3877, allocations: 128.8 kB / 386.9 MB, free: 8.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3877, allocations: 4 kB / 386.9 MB, free: 8.766 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003672/0.3881, allocations: 74.69 kB / 387 MB, free: 8.754 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.0001678/0.3883, allocations: 130.2 kB / 387.1 MB, free: 8.656 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008992/0.3892, allocations: 0.5433 MB / 387.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3892, allocations: 0 / 387.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005079/0.3897, allocations: 398.4 kB / 388.1 MB, free: 8.121 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006822/0.3904, allocations: 152.9 kB / 388.2 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.3915, allocations: 0.5235 MB / 388.8 MB, free: 7.797 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.3918, allocations: 0.7515 MB / 389.5 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.392, allocations: 55.73 kB / 389.6 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.156e-05/0.3921, allocations: 20.59 kB / 389.6 MB, free: 7.082 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3921, allocations: 0 / 389.6 MB, free: 7.082 MB / 318.1 MB Notification: Performance of Templates: time 0.01097/0.403, allocations: 4.284 MB / 393.9 MB, free: 6.719 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)