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.001243/0.001243, allocations: 111.6 kB / 17.06 MB, free: 6 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.001359/0.00136, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.564/1.564, 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.001513/0.001513, allocations: 51.92 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1329, allocations: 46.61 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004806/0.1378, allocations: 2.341 MB / 376.8 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.1398, allocations: 0.7095 MB / 377.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003149/0.1402, allocations: 3.938 kB / 377.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002482/0.1405, allocations: 31.7 kB / 377.6 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002944/0.1408, allocations: 51.5 kB / 377.6 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005828/0.1414, allocations: 91.77 kB / 377.7 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005412/0.1419, allocations: 267 kB / 378 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003542/0.1423, allocations: 115 kB / 378.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002513/0.1426, allocations: 119.6 kB / 378.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.1428, allocations: 111.5 kB / 378.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.211e-05/0.1428, allocations: 27.94 kB / 378.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.238e-05/0.1429, allocations: 20 kB / 378.4 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.007e-05/0.143, allocations: 59.81 kB / 378.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.1432, allocations: 111.5 kB / 378.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003922/0.1436, allocations: 283 kB / 378.8 MB, free: 244 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.206e-05/0.1436, allocations: 4 kB / 378.8 MB, free: 240 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1436, allocations: 3.938 kB / 378.8 MB, free: 236 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.445e-06/0.1436, allocations: 4 kB / 378.8 MB, free: 232 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.3106/0.4542, allocations: 0.6577 MB / 379.5 MB, free: 13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.382e-05/0.4543, allocations: 10.59 kB / 379.5 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.4545, allocations: 26.28 kB / 379.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005298/0.455, allocations: 243.9 kB / 379.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.4551, allocations: 46.58 kB / 379.8 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.96e-05/0.4552, allocations: 22.16 kB / 379.8 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007328/0.4559, allocations: 258.6 kB / 380.1 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.456, allocations: 3.938 kB / 380.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.343e-05/0.456, allocations: 13.25 kB / 380.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.456, allocations: 4.438 kB / 380.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005743/0.4566, allocations: 201.9 kB / 380.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.458, allocations: 0.7503 MB / 381 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006338/0.4587, allocations: 300.5 kB / 381.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000572/0.4593, allocations: 221.1 kB / 381.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.4593, allocations: 2.219 kB / 381.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006182/0.4599, allocations: 327.1 kB / 381.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.255e-06/0.4599, allocations: 3.281 kB / 381.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001437/0.4614, allocations: 0.5641 MB / 382.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.4615, allocations: 206.3 kB / 382.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/0.4617, allocations: 186.3 kB / 382.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.4618, allocations: 35.84 kB / 382.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.4619, allocations: 138.6 kB / 383 MB, free: 11.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.063e-05/0.462, allocations: 76.5 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.4621, allocations: 69.39 kB / 383.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.4622, allocations: 335.9 kB / 383.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.4625, allocations: 111.7 kB / 383.6 MB, free: 10.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003264/0.4628, allocations: 172.5 kB / 383.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006226/0.4635, allocations: 409.3 kB / 384.1 MB, free: 10.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.4635, allocations: 5.375 kB / 384.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007128/0.4642, allocations: 440.5 kB / 384.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.768e-05/0.4643, allocations: 100.9 kB / 384.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.4643, allocations: 1.5 kB / 384.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.4643, allocations: 6.406 kB / 384.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.4645, allocations: 41.97 kB / 384.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.4645, allocations: 6.641 kB / 384.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.4647, allocations: 37.53 kB / 384.8 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.4648, allocations: 10.47 kB / 384.8 MB, free: 10.14 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.0002381/0.465, allocations: 242.4 kB / 385 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.423e-05/0.4651, allocations: 26.83 kB / 385 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.403e-05/0.4651, allocations: 23.41 kB / 385 MB, free: 9.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.4652, allocations: 7.625 kB / 385.1 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.4652, allocations: 0 / 385.1 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4652, allocations: 1.453 kB / 385.1 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.4668, allocations: 0.9296 MB / 386 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4668, allocations: 5.094 kB / 386 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.4669, allocations: 26.39 kB / 386 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.4669, allocations: 2.969 kB / 386 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.467, allocations: 16.66 kB / 386 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.467, allocations: 1.859 kB / 386 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.467, allocations: 1.062 kB / 386 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.4681, allocations: 0.6051 MB / 386.6 MB, free: 9.008 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.396e-05/0.4682, allocations: 100 kB / 386.7 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.125e-05/0.4683, allocations: 21.69 kB / 386.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.4685, allocations: 17.64 kB / 386.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.4686, allocations: 24.81 kB / 386.8 MB, free: 8.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.535e-05/0.4687, allocations: 13.11 kB / 386.8 MB, free: 8.879 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001395/0.4688, allocations: 134.2 kB / 386.9 MB, free: 8.785 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4688, allocations: 0 / 386.9 MB, free: 8.785 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004305/0.4693, allocations: 74.06 kB / 387 MB, free: 8.773 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.0002146/0.4695, allocations: 130.1 kB / 387.1 MB, free: 8.676 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.4705, allocations: 0.5396 MB / 387.7 MB, free: 8.379 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4705, allocations: 1.312 kB / 387.7 MB, free: 8.379 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005618/0.4711, allocations: 397.9 kB / 388.1 MB, free: 8.145 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008438/0.4719, allocations: 152.7 kB / 388.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.4732, allocations: 0.5208 MB / 388.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.4734, allocations: 0.7486 MB / 389.5 MB, free: 7.117 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001813/0.4736, allocations: 54.98 kB / 389.5 MB, free: 7.113 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.467e-05/0.4737, allocations: 26.67 kB / 389.6 MB, free: 7.102 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.4737, allocations: 4 kB / 389.6 MB, free: 7.098 MB / 318.1 MB Notification: Performance of Templates: time 0.0106/0.4843, allocations: 4.272 MB / 393.9 MB, free: 6.75 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)