Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.00225/0.00225, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.937/1.937, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004828/0.0004828, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.323, allocations: 47.58 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01216/0.3353, allocations: 10.71 MB / 337.2 MB, free: 8.758 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008077/0.3434, allocations: 3.123 MB / 340.3 MB, free: 5.625 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00288/0.3463, allocations: 39.88 kB / 340.3 MB, free: 5.586 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002379/0.3487, allocations: 0.5242 MB / 340.9 MB, free: 5.059 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002971/0.3517, allocations: 0.5893 MB / 341.5 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.3529, allocations: 251.7 kB / 341.7 MB, free: 4.219 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003585/0.3564, allocations: 2.171 MB / 343.9 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001613/0.3581, allocations: 0.6755 MB / 344.6 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.3599, allocations: 0.7233 MB / 345.3 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001795/0.3617, allocations: 0.8088 MB / 346.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005222/0.3622, allocations: 108 kB / 346.2 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009447/0.3632, allocations: 147.9 kB / 346.3 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004448/0.3636, allocations: 310.5 kB / 346.6 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008928/0.3645, allocations: 404.7 kB / 347 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002702/0.3672, allocations: 2.216 MB / 349.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.061e-05/0.3673, allocations: 0 / 349.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3673, allocations: 3.938 kB / 349.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001424/0.3674, allocations: 0 / 349.3 MB, free: 12.62 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005031/0.3725, allocations: 1.868 MB / 351.1 MB, free: 10.69 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.3725, allocations: 12.03 kB / 351.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/0.3738, allocations: 281.4 kB / 351.4 MB, free: 10.4 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002572/0.3764, allocations: 1.071 MB / 352.5 MB, free: 9.273 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.3765, allocations: 115.1 kB / 352.6 MB, free: 9.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004035/0.377, allocations: 159.9 kB / 352.7 MB, free: 9.004 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003391/0.3804, allocations: 1.496 MB / 354.2 MB, free: 7.445 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.87e-05/0.3805, allocations: 23.83 kB / 354.3 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/0.3806, allocations: 60 kB / 354.3 MB, free: 7.363 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.444e-05/0.3807, allocations: 40 kB / 354.4 MB, free: 7.324 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002536/0.3832, allocations: 1.057 MB / 355.4 MB, free: 6.262 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/0.3938, allocations: 6.308 MB / 361.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.3953, allocations: 0.631 MB / 362.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009479/0.3963, allocations: 466.9 kB / 362.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-05/0.3964, allocations: 8.703 kB / 362.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.3964, allocations: 47.08 kB / 362.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 3.737e-06/0.3965, allocations: 0 / 362.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.007578/0.404, allocations: 2.446 MB / 365.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002237/0.4043, allocations: 119.4 kB / 365.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00484/0.4092, allocations: 1.29 MB / 366.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.4093, allocations: 37.7 kB / 366.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001252/0.4106, allocations: 0.8454 MB / 367.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003815/0.411, allocations: 268.2 kB / 367.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.595e-05/0.4111, allocations: 20 kB / 367.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002382/0.4113, allocations: 361.8 kB / 368.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.4124, allocations: 286.5 kB / 368.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.4141, allocations: 0.7421 MB / 369.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.4155, allocations: 419 kB / 369.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.753e-05/0.4156, allocations: 4 kB / 369.7 MB, free: 7.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.004346/0.4199, allocations: 1.291 MB / 371 MB, free: 6.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.42, allocations: 16.06 kB / 371 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.597e-05/0.42, allocations: 12 kB / 371 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007655/0.4208, allocations: 146.5 kB / 371.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.4221, allocations: 259.6 kB / 371.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005145/0.4273, allocations: 4.317 MB / 375.7 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/0.4291, allocations: 59.88 kB / 375.8 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.4292, allocations: 63.97 kB / 375.8 MB, free: 0.7383 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001065/0.4303, allocations: 357.5 kB / 376.2 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002859/0.4306, allocations: 134.3 kB / 376.3 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002637/0.4332, allocations: 0.8724 MB / 377.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.4333, allocations: 8 kB / 377.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/0.4333, allocations: 0 / 377.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.4333, allocations: 7.984 kB / 377.2 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0063/0.4396, allocations: 2.373 MB / 379.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.4396, allocations: 4 kB / 379.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008489/0.4405, allocations: 131.8 kB / 379.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006598/0.4412, allocations: 142.6 kB / 379.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.961e-05/0.4413, allocations: 16 kB / 379.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006336/0.4476, allocations: 4.446 MB / 384.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.4477, allocations: 8.062 kB / 384.3 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003892/0.4516, allocations: 1.346 MB / 385.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00122/0.4528, allocations: 279.4 kB / 385.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007194/0.4535, allocations: 20 kB / 385.9 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/0.455, allocations: 48.16 kB / 386 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.4552, allocations: 60.38 kB / 386.1 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.729e-05/0.4553, allocations: 28 kB / 386.1 MB, free: 5.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002651/0.4579, allocations: 0.8703 MB / 387 MB, free: 4.949 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.458, allocations: 3.938 kB / 387 MB, free: 4.945 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002187/0.4602, allocations: 328 kB / 387.3 MB, free: 4.625 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003402/0.4605, allocations: 139.1 kB / 387.4 MB, free: 4.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002411/0.4629, allocations: 1.128 MB / 388.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.463, allocations: 0.875 kB / 388.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.4642, allocations: 0.7187 MB / 389.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002571/0.4668, allocations: 340.9 kB / 389.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007991/0.4748, allocations: 3.578 MB / 393.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001379/0.4762, allocations: 1.217 MB / 394.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009668/0.4772, allocations: 175.6 kB / 394.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/0.4775, allocations: 87.42 kB / 394.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of SimCode: time 1.984e-06/0.4775, allocations: 0 / 394.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Templates: time 0.03561/0.5131, allocations: 16.15 MB / 410.8 MB, free: 12.88 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)