Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001854/0.001854, 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.001879/0.001879, allocations: 194.7 kB / 16.53 MB, free: 6.699 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.888/1.888, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001452/0.001452, allocations: 60.34 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3695, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01118/0.3808, allocations: 8.045 MB / 333.4 MB, free: 11.47 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007239/0.388, allocations: 2.671 MB / 336 MB, free: 9.164 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002127/0.3902, allocations: 23.94 kB / 336.1 MB, free: 9.141 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002918/0.3932, allocations: 0.5519 MB / 336.6 MB, free: 8.586 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002825/0.396, allocations: 468.3 kB / 337.1 MB, free: 8.125 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001114/0.3972, allocations: 247.7 kB / 337.3 MB, free: 7.883 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002783/0.4, allocations: 1.463 MB / 338.8 MB, free: 6.414 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001038/0.401, allocations: 0.5807 MB / 339.3 MB, free: 5.812 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009506/0.402, allocations: 0.5486 MB / 339.9 MB, free: 5.262 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008816/0.4029, allocations: 0.595 MB / 340.5 MB, free: 4.664 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002851/0.4032, allocations: 140 kB / 340.6 MB, free: 4.527 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000421/0.4036, allocations: 176 kB / 340.8 MB, free: 4.355 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002523/0.4039, allocations: 286.9 kB / 341.1 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008434/0.4047, allocations: 0.6609 MB / 341.7 MB, free: 3.41 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001967/0.4067, allocations: 1.694 MB / 343.4 MB, free: 1.711 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.4067, allocations: 4 kB / 343.4 MB, free: 1.707 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4067, allocations: 0 / 343.4 MB, free: 1.707 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.012e-05/0.4068, allocations: 4 kB / 343.4 MB, free: 1.703 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003007/0.4098, allocations: 1.449 MB / 344.9 MB, free: 204 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.4098, allocations: 8.031 kB / 344.9 MB, free: 196 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009059/0.4107, allocations: 191.3 kB / 345.1 MB, free: 4 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.4124, allocations: 0.73 MB / 345.8 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.065e-05/0.4125, allocations: 70 kB / 345.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.4127, allocations: 99.91 kB / 346 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.4144, allocations: 0.9386 MB / 346.9 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.52e-05/0.4144, allocations: 0 / 346.9 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.595e-05/0.4145, allocations: 43.94 kB / 347 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.4146, allocations: 24 kB / 347 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.416, allocations: 0.6364 MB / 347.6 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005559/0.4216, allocations: 3.93 MB / 351.6 MB, free: 9.242 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007894/0.4224, allocations: 436.7 kB / 352 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005855/0.423, allocations: 257.4 kB / 352.2 MB, free: 8.535 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.872e-05/0.423, allocations: 8.312 kB / 352.2 MB, free: 8.527 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.4231, allocations: 42.83 kB / 352.3 MB, free: 8.477 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.204e-06/0.4231, allocations: 0 / 352.3 MB, free: 8.477 MB / 286.1 MB Notification: Performance of matching and sorting (n=44): time 0.003404/0.4265, allocations: 1.396 MB / 353.7 MB, free: 7.004 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.341e-05/0.4266, allocations: 81.11 kB / 353.8 MB, free: 6.906 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.4279, allocations: 0.8214 MB / 354.6 MB, free: 6.078 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.4279, allocations: 33.7 kB / 354.6 MB, free: 6.039 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006397/0.4286, allocations: 0.5564 MB / 355.2 MB, free: 5.473 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003811/0.429, allocations: 157.8 kB / 355.3 MB, free: 5.316 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002126/0.4292, allocations: 130.6 kB / 355.4 MB, free: 5.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0003227/0.4295, allocations: 330 kB / 355.8 MB, free: 4.852 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003335/0.4299, allocations: 173.9 kB / 355.9 MB, free: 4.684 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.4305, allocations: 460 kB / 356.4 MB, free: 4.098 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.4316, allocations: 0.6544 MB / 357 MB, free: 3.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.4316, allocations: 4 kB / 357 MB, free: 3.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001317/0.4329, allocations: 0.7705 MB / 357.8 MB, free: 2.523 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.4329, allocations: 8.625 kB / 357.8 MB, free: 2.516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/0.433, allocations: 12 kB / 357.8 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002918/0.4333, allocations: 101.7 kB / 357.9 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/0.4338, allocations: 151.7 kB / 358.1 MB, free: 2.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003417/0.4372, allocations: 3.138 MB / 361.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005698/0.4378, allocations: 44.17 kB / 361.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.4378, allocations: 36 kB / 361.3 MB, free: 14.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000424/0.4383, allocations: 261.4 kB / 361.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.4384, allocations: 86.97 kB / 361.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009197/0.4393, allocations: 499.4 kB / 362.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/0.4393, allocations: 4 kB / 362.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.4394, allocations: 0 / 362.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.4394, allocations: 7.922 kB / 362.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.4416, allocations: 1.438 MB / 363.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.4416, allocations: 48 / 363.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003287/0.4419, allocations: 79.88 kB / 363.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002159/0.4422, allocations: 73.89 kB / 363.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.839e-05/0.4422, allocations: 12 kB / 363.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002584/0.4448, allocations: 3.122 MB / 366.9 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.4448, allocations: 4.031 kB / 366.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.4461, allocations: 0.7612 MB / 367.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002945/0.4464, allocations: 192.1 kB / 367.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.745e-05/0.4465, allocations: 19.94 kB / 367.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004102/0.4469, allocations: 27.97 kB / 367.9 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.176e-05/0.447, allocations: 31.91 kB / 367.9 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.4471, allocations: 15.98 kB / 367.9 MB, free: 7.688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008521/0.4479, allocations: 0.5615 MB / 368.5 MB, free: 7.133 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4479, allocations: 4 kB / 368.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009029/0.4488, allocations: 200 kB / 368.7 MB, free: 6.934 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0002763/0.4491, allocations: 131.2 kB / 368.8 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.4505, allocations: 0.6949 MB / 369.5 MB, free: 6.074 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.4505, allocations: 8.062 kB / 369.5 MB, free: 6.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006683/0.4512, allocations: 437.1 kB / 369.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.4524, allocations: 223.5 kB / 370.1 MB, free: 5.395 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00303/0.4554, allocations: 1.731 MB / 371.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000685/0.4561, allocations: 1.001 MB / 372.9 MB, free: 2.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004425/0.4566, allocations: 107.2 kB / 373 MB, free: 2.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.4567, allocations: 59.44 kB / 373 MB, free: 2.418 MB / 302.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4567, allocations: 0 / 373 MB, free: 2.418 MB / 302.1 MB Notification: Performance of Templates: time 0.01862/0.4754, allocations: 10.52 MB / 383.6 MB, free: 7.879 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)