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.001702/0.001702, allocations: 108.4 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.001644/0.001644, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.56/1.56, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001131/0.001131, allocations: 43.94 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1186, allocations: 46.62 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003806/0.1225, allocations: 2.337 MB / 376.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.1238, allocations: 0.7134 MB / 377.5 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.1239, allocations: 3.938 kB / 377.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.1241, allocations: 27.72 kB / 377.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.825e-05/0.1242, allocations: 55.5 kB / 377.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.1245, allocations: 87.77 kB / 377.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003113/0.1249, allocations: 275 kB / 378 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.1251, allocations: 111 kB / 378.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.1253, allocations: 123.6 kB / 378.2 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.1255, allocations: 107.6 kB / 378.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.756e-05/0.1255, allocations: 20 kB / 378.3 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.463e-05/0.1256, allocations: 27.94 kB / 378.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.461e-05/0.1257, allocations: 55.78 kB / 378.4 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.1258, allocations: 123.4 kB / 378.5 MB, free: 500 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003244/0.1261, allocations: 274.9 kB / 378.8 MB, free: 224 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1261, allocations: 0 / 378.8 MB, free: 224 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1261, allocations: 0 / 378.8 MB, free: 224 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.1262, allocations: 4 kB / 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.2662/0.3923, allocations: 0.669 MB / 379.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.3924, allocations: 10.75 kB / 379.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.3925, allocations: 26.55 kB / 379.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004358/0.393, allocations: 246.3 kB / 379.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-05/0.3931, allocations: 52.27 kB / 379.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/0.3931, allocations: 17.62 kB / 379.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006497/0.3938, allocations: 264.2 kB / 380.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.3938, allocations: 3.938 kB / 380.1 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.3938, allocations: 12.06 kB / 380.1 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.3939, allocations: 4.125 kB / 380.1 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005546/0.3944, allocations: 201.8 kB / 380.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.3958, allocations: 0.7505 MB / 381 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000614/0.3964, allocations: 299.5 kB / 381.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005005/0.3969, allocations: 226.1 kB / 381.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.397, allocations: 1.547 kB / 381.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006161/0.3976, allocations: 322.4 kB / 381.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.955e-06/0.3976, allocations: 0 / 381.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.00131/0.3989, allocations: 0.5761 MB / 382.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.581e-05/0.399, allocations: 200.3 kB / 382.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.3992, allocations: 187 kB / 382.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.3993, allocations: 36.7 kB / 382.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.31e-05/0.3994, allocations: 141.5 kB / 383 MB, free: 11.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.162e-05/0.3995, allocations: 81.36 kB / 383.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3996, allocations: 69.12 kB / 383.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.023e-05/0.3997, allocations: 332.6 kB / 383.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.3999, allocations: 105.7 kB / 383.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/0.4003, allocations: 184.6 kB / 383.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005939/0.4009, allocations: 409.6 kB / 384.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4009, allocations: 1.438 kB / 384.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006942/0.4016, allocations: 444.1 kB / 384.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.402e-05/0.4017, allocations: 96.8 kB / 384.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.4017, allocations: 2.844 kB / 384.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.4017, allocations: 5.875 kB / 384.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001953/0.4019, allocations: 42.39 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.4019, allocations: 3 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.4021, allocations: 34.88 kB / 384.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.4021, allocations: 13.44 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.0001986/0.4023, allocations: 246.8 kB / 385 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.696e-05/0.4024, allocations: 26.75 kB / 385 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.119e-05/0.4025, allocations: 26.61 kB / 385.1 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.4025, allocations: 6.078 kB / 385.1 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.4025, allocations: 5.109 kB / 385.1 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.4025, allocations: 2.469 kB / 385.1 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.4039, allocations: 0.9248 MB / 386 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.4039, allocations: 4.547 kB / 386 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.404, allocations: 24.48 kB / 386 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.404, allocations: 5.25 kB / 386 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.404, allocations: 13.47 kB / 386.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.404, allocations: 2.125 kB / 386.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4041, allocations: 1 kB / 386.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009585/0.405, allocations: 0.6049 MB / 386.7 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.976e-05/0.4051, allocations: 101.4 kB / 386.8 MB, free: 8.871 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.027e-05/0.4051, allocations: 19.77 kB / 386.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.4054, allocations: 18.73 kB / 386.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.4054, allocations: 21.12 kB / 386.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.4055, allocations: 17.97 kB / 386.8 MB, free: 8.852 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.886e-05/0.4056, allocations: 128.5 kB / 387 MB, free: 8.762 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4056, allocations: 1.531 kB / 387 MB, free: 8.762 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003504/0.4059, allocations: 74.64 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.0001667/0.4061, allocations: 132.1 kB / 387.2 MB, free: 8.648 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009074/0.407, allocations: 0.5393 MB / 387.7 MB, free: 8.352 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4071, allocations: 1.156 kB / 387.7 MB, free: 8.352 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005379/0.4076, allocations: 399.9 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.0007733/0.4084, allocations: 158.9 kB / 388.3 MB, free: 8.074 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.4094, allocations: 0.5283 MB / 388.8 MB, free: 7.781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.4098, allocations: 0.7508 MB / 389.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001714/0.41, allocations: 60.81 kB / 389.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.313e-05/0.41, allocations: 21.48 kB / 389.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.41, allocations: 0 / 389.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of Templates: time 0.009955/0.42, allocations: 4.27 MB / 393.9 MB, free: 6.711 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)