Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001382/0.001391, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001362/0.001362, allocations: 192.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 1.873/1.873, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.00159/0.00159, allocations: 47.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4319/0.4335, allocations: 46.62 MB / 324.9 MB, free: 2.184 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01653/0.4501, allocations: 12 MB / 336.9 MB, free: 8.223 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.4611, allocations: 3.27 MB / 340.1 MB, free: 4.945 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003948/0.4652, allocations: 39.88 kB / 340.2 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002579/0.4678, allocations: 0.5749 MB / 340.7 MB, free: 4.328 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004132/0.472, allocations: 0.64 MB / 341.4 MB, free: 3.684 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.4732, allocations: 347.7 kB / 341.7 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0044/0.4776, allocations: 2.401 MB / 344.1 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001582/0.4792, allocations: 1.001 MB / 345.1 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.4812, allocations: 0.9026 MB / 346 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.4825, allocations: 0.9762 MB / 347 MB, free: 14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003294/0.4828, allocations: 228 kB / 347.2 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005602/0.4834, allocations: 268 kB / 347.5 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004398/0.4839, allocations: 462.3 kB / 347.9 MB, free: 13.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.4851, allocations: 1.077 MB / 349 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003218/0.4883, allocations: 2.795 MB / 351.8 MB, free: 9.176 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.799e-05/0.4884, allocations: 4 kB / 351.8 MB, free: 9.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.4884, allocations: 4 kB / 351.8 MB, free: 9.168 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.467e-05/0.4884, allocations: 0 / 351.8 MB, free: 9.168 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.004521/0.493, allocations: 2.156 MB / 354 MB, free: 6.953 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.832e-05/0.4931, allocations: 8.031 kB / 354 MB, free: 6.945 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.4941, allocations: 278.4 kB / 354.3 MB, free: 6.672 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001886/0.496, allocations: 1.103 MB / 355.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.4961, allocations: 119.5 kB / 355.5 MB, free: 5.395 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.4963, allocations: 167.8 kB / 355.6 MB, free: 5.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002887/0.4992, allocations: 1.5 MB / 357.1 MB, free: 3.668 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.383e-05/0.4993, allocations: 11.91 kB / 357.1 MB, free: 3.656 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.4994, allocations: 64 kB / 357.2 MB, free: 3.594 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-05/0.4995, allocations: 36 kB / 357.2 MB, free: 3.559 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002004/0.5015, allocations: 1.057 MB / 358.3 MB, free: 2.496 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00937/0.5109, allocations: 6.292 MB / 364.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.5127, allocations: 0.6043 MB / 365.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009485/0.5137, allocations: 466.4 kB / 365.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.649e-05/0.5137, allocations: 8.562 kB / 365.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/0.5138, allocations: 43.06 kB / 365.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 5.32e-06/0.5138, allocations: 0 / 365.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.006013/0.5198, allocations: 2.364 MB / 368.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001834/0.52, allocations: 115.5 kB / 368.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.5222, allocations: 1.306 MB / 369.5 MB, free: 6.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001949/0.5224, allocations: 37.7 kB / 369.5 MB, free: 6.812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007306/0.5232, allocations: 0.8531 MB / 370.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003016/0.5235, allocations: 264.2 kB / 370.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003497/0.5239, allocations: 206.7 kB / 370.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003178/0.5242, allocations: 341.9 kB / 371.2 MB, free: 5.137 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006054/0.5248, allocations: 290.5 kB / 371.5 MB, free: 4.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009664/0.5258, allocations: 0.7342 MB / 372.2 MB, free: 3.906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/0.5274, allocations: 1.092 MB / 373.3 MB, free: 2.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.5274, allocations: 4 kB / 373.3 MB, free: 2.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002718/0.5302, allocations: 1.264 MB / 374.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.5302, allocations: 12 kB / 374.6 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/0.5302, allocations: 16 kB / 374.6 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005951/0.5308, allocations: 134.5 kB / 374.7 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008446/0.5317, allocations: 255.6 kB / 375 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005086/0.5368, allocations: 4.638 MB / 379.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.5382, allocations: 63.88 kB / 379.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.981e-05/0.5383, allocations: 56.12 kB / 379.7 MB, free: 11.73 MB / 318.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 (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008838/0.5392, allocations: 361.5 kB / 380.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002078/0.5394, allocations: 142.3 kB / 380.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001849/0.5412, allocations: 0.8256 MB / 381 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.5413, allocations: 15.94 kB / 381 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.5413, allocations: 3.984 kB / 381 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.5413, allocations: 0 / 381 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004183/0.5455, allocations: 2.33 MB / 383.4 MB, free: 7.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.659e-06/0.5455, allocations: 4 kB / 383.4 MB, free: 7.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005982/0.5461, allocations: 127.8 kB / 383.5 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004807/0.5466, allocations: 134.5 kB / 383.6 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.619e-05/0.5467, allocations: 23.98 kB / 383.7 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004794/0.5515, allocations: 4.783 MB / 388.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/0.5515, allocations: 7.938 kB / 388.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002622/0.5541, allocations: 1.295 MB / 389.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007475/0.5549, allocations: 283.4 kB / 390 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.5551, allocations: 16 kB / 390 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006796/0.5558, allocations: 39.97 kB / 390.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.5559, allocations: 72.34 kB / 390.2 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.747e-05/0.556, allocations: 23.98 kB / 390.2 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001567/0.5576, allocations: 0.8782 MB / 391.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5576, allocations: 0 / 391.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001576/0.5592, allocations: 328 kB / 391.4 MB, free: 15.38 MB / 334.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 (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003366/0.5595, allocations: 139.1 kB / 391.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002628/0.5621, allocations: 1.143 MB / 392.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.5622, allocations: 0 / 392.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.5633, allocations: 0.7125 MB / 393.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/0.5653, allocations: 365 kB / 393.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006805/0.5721, allocations: 3.583 MB / 397.3 MB, free: 9.285 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009933/0.5731, allocations: 1.217 MB / 398.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009268/0.5741, allocations: 175.6 kB / 398.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002308/0.5743, allocations: 91.42 kB / 398.8 MB, free: 7.773 MB / 334.1 MB Notification: Performance of SimCode: time 2.474e-06/0.5743, allocations: 0 / 398.8 MB, free: 7.773 MB / 334.1 MB Notification: Performance of Templates: time 0.04155/0.6159, allocations: 17.52 MB / 416.3 MB, free: 6.223 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)