Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002296/0.002296, allocations: 193.1 kB / 16.13 MB, free: 6.668 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.877/1.877, allocations: 205.1 MB / 222 MB, free: 4.75 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.001566/0.001566, allocations: 55.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.391/0.3926, allocations: 46.63 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01127/0.404, allocations: 7.074 MB / 331.8 MB, free: 12.35 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00662/0.4107, allocations: 2.355 MB / 334.1 MB, free: 10.41 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.4121, allocations: 19.94 kB / 334.1 MB, free: 10.4 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.4141, allocations: 454.8 kB / 334.6 MB, free: 10.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001291/0.4154, allocations: 322.6 kB / 334.9 MB, free: 9.812 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005116/0.4159, allocations: 182.8 kB / 335.1 MB, free: 9.652 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.4172, allocations: 1.145 MB / 336.2 MB, free: 8.586 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007588/0.418, allocations: 450.6 kB / 336.7 MB, free: 8.125 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005873/0.4186, allocations: 414.1 kB / 337.1 MB, free: 7.719 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004974/0.4191, allocations: 473.7 kB / 337.5 MB, free: 7.254 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.4192, allocations: 72 kB / 337.6 MB, free: 7.184 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.4195, allocations: 108 kB / 337.7 MB, free: 7.078 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.4197, allocations: 175.2 kB / 337.9 MB, free: 6.906 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005373/0.4202, allocations: 0.5052 MB / 338.4 MB, free: 6.398 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001447/0.4217, allocations: 1.382 MB / 339.8 MB, free: 5.012 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.4217, allocations: 8 kB / 339.8 MB, free: 5.004 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.4217, allocations: 0 / 339.8 MB, free: 5.004 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.4217, allocations: 4 kB / 339.8 MB, free: 5 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002358/0.4241, allocations: 1.239 MB / 341 MB, free: 3.711 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.4242, allocations: 8.031 kB / 341 MB, free: 3.703 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005044/0.4247, allocations: 139.7 kB / 341.2 MB, free: 3.566 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009941/0.4257, allocations: 0.6376 MB / 341.8 MB, free: 2.883 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.493e-05/0.4257, allocations: 62.31 kB / 341.8 MB, free: 2.824 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.4259, allocations: 80.38 kB / 341.9 MB, free: 2.746 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.4273, allocations: 0.7871 MB / 342.7 MB, free: 1.926 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.565e-05/0.4273, allocations: 11.91 kB / 342.7 MB, free: 1.914 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.4274, allocations: 32 kB / 342.8 MB, free: 1.883 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/0.4274, allocations: 24 kB / 342.8 MB, free: 1.859 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.4285, allocations: 0.5152 MB / 343.3 MB, free: 1.348 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005034/0.4336, allocations: 3.391 MB / 346.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005248/0.4341, allocations: 226.5 kB / 346.9 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.4344, allocations: 116.8 kB / 347 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.4344, allocations: 4 kB / 347 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.4345, allocations: 38.5 kB / 347.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 2.665e-06/0.4345, allocations: 0 / 347.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.002851/0.4374, allocations: 1.051 MB / 348.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.569e-05/0.4375, allocations: 81.11 kB / 348.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.4385, allocations: 0.7309 MB / 348.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.4385, allocations: 33.7 kB / 349 MB, free: 11.35 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004411/0.439, allocations: 0.4904 MB / 349.4 MB, free: 10.85 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.4391, allocations: 106.5 kB / 349.6 MB, free: 10.74 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001959/0.4393, allocations: 118.1 kB / 349.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002652/0.4396, allocations: 382.8 kB / 350 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002837/0.4399, allocations: 125.2 kB / 350.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006115/0.4405, allocations: 414.2 kB / 350.6 MB, free: 9.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009148/0.4414, allocations: 0.5676 MB / 351.1 MB, free: 8.867 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4414, allocations: 11.94 kB / 351.1 MB, free: 8.855 MB / 286.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001282/0.4427, allocations: 0.611 MB / 351.8 MB, free: 8.234 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/0.4428, allocations: 8 kB / 351.8 MB, free: 8.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.721e-05/0.4428, allocations: 15.94 kB / 351.8 MB, free: 8.211 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002247/0.443, allocations: 32.84 kB / 351.8 MB, free: 8.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004643/0.4435, allocations: 140.1 kB / 352 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.445, allocations: 1.295 MB / 353.2 MB, free: 6.613 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005672/0.4456, allocations: 32.14 kB / 353.3 MB, free: 6.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.4456, allocations: 32 kB / 353.3 MB, free: 6.551 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.0004473/0.4461, allocations: 242 kB / 353.5 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.4462, allocations: 75.06 kB / 353.6 MB, free: 6.23 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007222/0.4469, allocations: 317.4 kB / 353.9 MB, free: 5.91 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.447, allocations: 8.031 kB / 353.9 MB, free: 5.902 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.447, allocations: 7.922 kB / 353.9 MB, free: 5.895 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.447, allocations: 0 / 353.9 MB, free: 5.895 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.4488, allocations: 1.094 MB / 355 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.4488, allocations: 4 kB / 355 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.4491, allocations: 59.89 kB / 355.1 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.564e-05/0.4492, allocations: 25.08 kB / 355.1 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.4492, allocations: 8 kB / 355.1 MB, free: 4.621 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.4503, allocations: 1.276 MB / 356.4 MB, free: 3.211 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/0.4504, allocations: 7.969 kB / 356.4 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.4515, allocations: 0.5483 MB / 357 MB, free: 2.613 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002999/0.4518, allocations: 180 kB / 357.1 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.4519, allocations: 11.98 kB / 357.2 MB, free: 2.406 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.4523, allocations: 23.98 kB / 357.2 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.649e-05/0.4524, allocations: 19.97 kB / 357.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.4524, allocations: 8 kB / 357.2 MB, free: 2.355 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0008726/0.4533, allocations: 0.4991 MB / 357.7 MB, free: 1.859 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4533, allocations: 0 / 357.7 MB, free: 1.859 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007978/0.4541, allocations: 164 kB / 357.9 MB, free: 1.699 MB / 286.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 (27): * Single equations (assignments): 26 * 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.0002498/0.4544, allocations: 123 kB / 358 MB, free: 1.57 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009728/0.4554, allocations: 457.3 kB / 358.4 MB, free: 1.113 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.4554, allocations: 4 kB / 358.4 MB, free: 1.109 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004029/0.4558, allocations: 239.1 kB / 358.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.4569, allocations: 167 kB / 358.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.46, allocations: 1.758 MB / 360.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007791/0.4608, allocations: 0.9414 MB / 361.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004122/0.4612, allocations: 86.03 kB / 361.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.4614, allocations: 51.42 kB / 361.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4614, allocations: 0 / 361.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01859/0.48, allocations: 7.717 MB / 369.4 MB, free: 6.07 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)