Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001533/0.001533, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.002567/0.002567, allocations: 195.4 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.00156/0.00156, allocations: 47.92 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3423, allocations: 46.63 MB / 324.9 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01014/0.3525, allocations: 7.894 MB / 332.7 MB, free: 11.69 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005963/0.3585, allocations: 2.586 MB / 335.3 MB, free: 9.547 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001625/0.3602, allocations: 23.47 kB / 335.4 MB, free: 9.543 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.3619, allocations: 458.7 kB / 335.8 MB, free: 9.113 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001534/0.3635, allocations: 345.5 kB / 336.1 MB, free: 8.773 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005629/0.364, allocations: 191.8 kB / 336.3 MB, free: 8.586 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001674/0.3657, allocations: 1.226 MB / 337.6 MB, free: 7.355 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008095/0.3665, allocations: 0.5253 MB / 338.1 MB, free: 6.812 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008/0.3674, allocations: 486 kB / 338.6 MB, free: 6.336 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00066/0.368, allocations: 0.5172 MB / 339.1 MB, free: 5.816 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.3682, allocations: 116 kB / 339.2 MB, free: 5.703 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003515/0.3685, allocations: 156 kB / 339.3 MB, free: 5.551 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.3688, allocations: 231.2 kB / 339.6 MB, free: 5.324 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000593/0.3694, allocations: 0.5638 MB / 340.1 MB, free: 4.758 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001674/0.3711, allocations: 1.437 MB / 341.6 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.3711, allocations: 0 / 341.6 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3711, allocations: 4 kB / 341.6 MB, free: 3.312 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.3711, allocations: 0 / 341.6 MB, free: 3.312 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.002195/0.3733, allocations: 1.313 MB / 342.9 MB, free: 1.945 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3734, allocations: 8.031 kB / 342.9 MB, free: 1.938 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004969/0.3739, allocations: 147.6 kB / 343 MB, free: 1.793 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009445/0.3748, allocations: 0.6376 MB / 343.7 MB, free: 1.113 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.686e-05/0.3749, allocations: 62.38 kB / 343.7 MB, free: 1.051 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.3751, allocations: 87.94 kB / 343.8 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.3765, allocations: 0.8184 MB / 344.6 MB, free: 120 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.282e-05/0.3765, allocations: 15.88 kB / 344.6 MB, free: 104 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.316e-05/0.3766, allocations: 32 kB / 344.7 MB, free: 72 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.3766, allocations: 20 kB / 344.7 MB, free: 52 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.3777, allocations: 0.5426 MB / 345.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005124/0.3828, allocations: 3.586 MB / 348.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006289/0.3835, allocations: 238.6 kB / 349.1 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002531/0.3837, allocations: 120.8 kB / 349.2 MB, free: 11.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.287e-05/0.3838, allocations: 0 / 349.2 MB, free: 11.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.3838, allocations: 46.44 kB / 349.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of pre-optimization done (n=26): time 1.492e-06/0.3838, allocations: 0 / 349.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.00249/0.3863, allocations: 1.075 MB / 350.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.786e-05/0.3864, allocations: 85.05 kB / 350.4 MB, free: 10.01 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.3875, allocations: 0.7623 MB / 351.1 MB, free: 9.238 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.3875, allocations: 33.7 kB / 351.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003922/0.3879, allocations: 0.5136 MB / 351.7 MB, free: 8.676 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.589e-05/0.388, allocations: 102.5 kB / 351.8 MB, free: 8.574 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.3882, allocations: 126.1 kB / 351.9 MB, free: 8.445 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.3884, allocations: 386.7 kB / 352.3 MB, free: 8.059 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.3887, allocations: 125.2 kB / 352.4 MB, free: 7.938 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005454/0.3892, allocations: 450.2 kB / 352.9 MB, free: 7.348 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009047/0.3902, allocations: 0.6141 MB / 353.5 MB, free: 6.586 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.3902, allocations: 0 / 353.5 MB, free: 6.586 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001261/0.3914, allocations: 0.6415 MB / 354.1 MB, free: 5.934 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.3915, allocations: 11.94 kB / 354.1 MB, free: 5.922 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.569e-05/0.3915, allocations: 16.84 kB / 354.1 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002376/0.3918, allocations: 44.78 kB / 354.2 MB, free: 5.859 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004815/0.3923, allocations: 143.8 kB / 354.3 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.3937, allocations: 1.39 MB / 355.7 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/0.3943, allocations: 47.91 kB / 355.8 MB, free: 4.137 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.3944, allocations: 36 kB / 355.8 MB, free: 4.102 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.0004232/0.3948, allocations: 237.5 kB / 356 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.395, allocations: 75.06 kB / 356.1 MB, free: 3.785 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006994/0.3957, allocations: 334.2 kB / 356.4 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.3957, allocations: 8 kB / 356.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-06/0.3957, allocations: 0 / 356.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3957, allocations: 3.938 kB / 356.4 MB, free: 3.438 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.3977, allocations: 1.125 MB / 357.6 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.3978, allocations: 3.984 kB / 357.6 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/0.398, allocations: 63.89 kB / 357.6 MB, free: 2.164 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001252/0.3982, allocations: 25.06 kB / 357.7 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.3982, allocations: 12 kB / 357.7 MB, free: 2.125 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001281/0.3995, allocations: 1.367 MB / 359 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3995, allocations: 4.031 kB / 359 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.4006, allocations: 0.572 MB / 359.6 MB, free: 0 / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002949/0.4009, allocations: 176.3 kB / 359.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.178e-05/0.401, allocations: 11.94 kB / 359.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/0.4013, allocations: 19.98 kB / 359.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.4015, allocations: 35.84 kB / 359.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.4015, allocations: 11.98 kB / 359.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008868/0.4024, allocations: 0.5147 MB / 360.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4024, allocations: 4 kB / 360.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00099/0.4034, allocations: 164 kB / 360.5 MB, free: 15.05 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.0003537/0.4038, allocations: 119.2 kB / 360.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.4051, allocations: 488.4 kB / 361.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.4051, allocations: 4.312 kB / 361.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004605/0.4056, allocations: 234.5 kB / 361.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.4069, allocations: 195.6 kB / 361.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.4108, allocations: 1.812 MB / 363.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008362/0.4116, allocations: 0.9563 MB / 364.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000418/0.4121, allocations: 98.09 kB / 364.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.4122, allocations: 55.42 kB / 364.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of SimCode: time 5.1e-07/0.4122, allocations: 7.938 kB / 364.5 MB, free: 11 MB / 302.1 MB Notification: Performance of Templates: time 0.01841/0.4306, allocations: 8.333 MB / 372.8 MB, free: 2.664 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1)