Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002049/0.002049, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003476/0.003476, allocations: 191.8 kB / 16.53 MB, free: 6.664 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.732/1.732, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001408/0.001408, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.325, allocations: 46.64 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01049/0.3355, allocations: 7.918 MB / 333.2 MB, free: 11.56 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006678/0.3423, allocations: 2.612 MB / 335.8 MB, free: 9.348 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009931/0.3434, allocations: 27.88 kB / 335.9 MB, free: 9.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.3448, allocations: 0.4969 MB / 336.4 MB, free: 8.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001151/0.3459, allocations: 400.8 kB / 336.8 MB, free: 8.426 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.3465, allocations: 223.6 kB / 337 MB, free: 8.207 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.3479, allocations: 1.218 MB / 338.2 MB, free: 6.984 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007393/0.3486, allocations: 0.5331 MB / 338.7 MB, free: 6.434 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005613/0.3492, allocations: 486.1 kB / 339.2 MB, free: 5.957 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005726/0.3498, allocations: 0.5134 MB / 339.7 MB, free: 5.441 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001455/0.3499, allocations: 116 kB / 339.8 MB, free: 5.328 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003094/0.3502, allocations: 156 kB / 340 MB, free: 5.176 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.3504, allocations: 239.1 kB / 340.2 MB, free: 4.941 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004884/0.3509, allocations: 0.5638 MB / 340.8 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001442/0.3524, allocations: 1.433 MB / 342.2 MB, free: 2.938 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3524, allocations: 0 / 342.2 MB, free: 2.938 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3524, allocations: 0 / 342.2 MB, free: 2.938 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.3524, allocations: 4 kB / 342.2 MB, free: 2.934 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002256/0.3547, allocations: 1.309 MB / 343.5 MB, free: 1.57 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.3547, allocations: 12.03 kB / 343.5 MB, free: 1.559 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004939/0.3552, allocations: 147.6 kB / 343.7 MB, free: 1.414 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009291/0.3562, allocations: 0.6298 MB / 344.3 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.3562, allocations: 66.38 kB / 344.4 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.3564, allocations: 87.94 kB / 344.5 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.3577, allocations: 0.8145 MB / 345.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/0.3578, allocations: 11.89 kB / 345.3 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.571e-05/0.3579, allocations: 36 kB / 345.3 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.217e-05/0.3579, allocations: 24 kB / 345.3 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.359, allocations: 0.5387 MB / 345.9 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004566/0.3636, allocations: 3.582 MB / 349.5 MB, free: 11.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/0.3641, allocations: 234.6 kB / 349.7 MB, free: 11.08 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002414/0.3644, allocations: 124.8 kB / 349.8 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.3644, allocations: 4 kB / 349.8 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.3644, allocations: 30.56 kB / 349.9 MB, free: 10.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=26): time 2.474e-06/0.3645, allocations: 7.938 kB / 349.9 MB, free: 10.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002261/0.3667, allocations: 1.075 MB / 350.9 MB, free: 9.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.878e-05/0.3668, allocations: 89.05 kB / 351 MB, free: 9.645 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.3679, allocations: 0.7623 MB / 351.8 MB, free: 8.875 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.368, allocations: 29.7 kB / 351.8 MB, free: 8.84 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004986/0.3685, allocations: 0.5175 MB / 352.3 MB, free: 8.312 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.053e-05/0.3686, allocations: 102.6 kB / 352.4 MB, free: 8.211 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.3687, allocations: 122.1 kB / 352.6 MB, free: 8.086 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.3689, allocations: 382.8 kB / 352.9 MB, free: 7.703 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002826/0.3692, allocations: 133.2 kB / 353.1 MB, free: 7.574 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005006/0.3697, allocations: 458.2 kB / 353.5 MB, free: 6.977 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008442/0.3706, allocations: 0.6141 MB / 354.1 MB, free: 6.215 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3706, allocations: 4 kB / 354.1 MB, free: 6.211 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001108/0.3717, allocations: 0.6377 MB / 354.8 MB, free: 5.562 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.3718, allocations: 12 kB / 354.8 MB, free: 5.551 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/0.3718, allocations: 16.81 kB / 354.8 MB, free: 5.535 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001793/0.372, allocations: 36.84 kB / 354.8 MB, free: 5.496 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004653/0.3724, allocations: 147.8 kB / 355 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.3736, allocations: 1.39 MB / 356.4 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005776/0.3742, allocations: 39.88 kB / 356.4 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.44e-05/0.3743, allocations: 40.09 kB / 356.4 MB, free: 3.738 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004382/0.3747, allocations: 245.5 kB / 356.7 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.3749, allocations: 75.06 kB / 356.7 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000721/0.3756, allocations: 333.9 kB / 357.1 MB, free: 3.078 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3756, allocations: 0 / 357.1 MB, free: 3.078 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3756, allocations: 4 kB / 357.1 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.3756, allocations: 7.938 kB / 357.1 MB, free: 3.066 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001824/0.3775, allocations: 1.117 MB / 358.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.3775, allocations: 4 kB / 358.2 MB, free: 1.863 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.3778, allocations: 63.89 kB / 358.3 MB, free: 1.801 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.415e-05/0.3779, allocations: 24.84 kB / 358.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.3779, allocations: 12.22 kB / 358.3 MB, free: 1.762 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.3791, allocations: 1.378 MB / 359.7 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3791, allocations: 0 / 359.7 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.3801, allocations: 0.5764 MB / 360.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002571/0.3804, allocations: 176.2 kB / 360.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.197e-05/0.3805, allocations: 15.94 kB / 360.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003324/0.3808, allocations: 19.98 kB / 360.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.242e-05/0.3809, allocations: 31.84 kB / 360.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.3809, allocations: 12 kB / 360.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006544/0.3816, allocations: 0.5186 MB / 361 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3816, allocations: 0 / 361 MB, free: 14.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007053/0.3823, allocations: 168 kB / 361.2 MB, free: 14.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002061/0.3825, allocations: 115.2 kB / 361.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000921/0.3834, allocations: 484.1 kB / 361.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3835, allocations: 4.75 kB / 361.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.3838, allocations: 246.5 kB / 362 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.3849, allocations: 179.6 kB / 362.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.3873, allocations: 1.491 MB / 363.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005324/0.3879, allocations: 0.9524 MB / 364.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003563/0.3882, allocations: 94.17 kB / 364.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.3884, allocations: 51.42 kB / 364.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3884, allocations: 0 / 364.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of Templates: time 0.01798/0.4064, allocations: 8.43 MB / 373.2 MB, free: 2.539 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1)