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.01094/0.01094, allocations: 104.6 kB / 15.74 MB, free: 6.492 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.001827/0.001827, allocations: 191.7 kB / 16.68 MB, free: 6.375 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.716/1.716, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001358/0.001358, allocations: 58.14 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1561, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01706/0.1732, allocations: 12.09 MB / 385.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.1841, allocations: 3.312 MB / 388.6 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004202/0.1884, allocations: 35.94 kB / 388.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003491/0.192, allocations: 0.6673 MB / 389.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005393/0.1974, allocations: 0.7247 MB / 390 MB, free: 404 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001695/0.1991, allocations: 411.5 kB / 390.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005507/0.2046, allocations: 2.405 MB / 392.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002225/0.2069, allocations: 0.9967 MB / 393.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002893/0.2098, allocations: 0.8911 MB / 394.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002336/0.2122, allocations: 0.9839 MB / 395.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004773/0.2127, allocations: 232 kB / 395.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008299/0.2135, allocations: 268 kB / 396.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004551/0.214, allocations: 462.3 kB / 396.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.2155, allocations: 1.073 MB / 397.7 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004262/0.2197, allocations: 2.834 MB / 400.5 MB, free: 5.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.363e-05/0.2198, allocations: 4 kB / 400.5 MB, free: 5.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.2198, allocations: 0 / 400.5 MB, free: 5.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.17e-05/0.2199, allocations: 4 kB / 400.5 MB, free: 5.773 MB / 334.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.005932/0.2258, allocations: 2.152 MB / 402.7 MB, free: 3.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.138e-05/0.2259, allocations: 8.031 kB / 402.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001201/0.2271, allocations: 290.3 kB / 403 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002646/0.2298, allocations: 1.123 MB / 404.1 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.2299, allocations: 111.5 kB / 404.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000308/0.2303, allocations: 167.8 kB / 404.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002977/0.2332, allocations: 1.5 MB / 405.9 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.168e-05/0.2333, allocations: 11.89 kB / 405.9 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.2335, allocations: 64 kB / 406 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.351e-05/0.2335, allocations: 40 kB / 406 MB, free: 144 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002514/0.236, allocations: 1.049 MB / 407 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01219/0.2483, allocations: 6.233 MB / 413.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001929/0.2503, allocations: 0.6192 MB / 413.9 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.2514, allocations: 462.1 kB / 414.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.295e-05/0.2515, allocations: 8.562 kB / 414.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.102e-05/0.2516, allocations: 51.11 kB / 414.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 4.769e-06/0.2516, allocations: 0 / 414.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.006418/0.258, allocations: 2.357 MB / 416.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.2582, allocations: 111.5 kB / 416.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002653/0.2609, allocations: 1.31 MB / 418.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.575e-05/0.2609, allocations: 37.7 kB / 418.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006997/0.2617, allocations: 0.853 MB / 419.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/0.2619, allocations: 256.3 kB / 419.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.2622, allocations: 210.7 kB / 419.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000235/0.2625, allocations: 349.9 kB / 419.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006758/0.2631, allocations: 286.4 kB / 420.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.2642, allocations: 0.7304 MB / 420.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001633/0.2658, allocations: 1.092 MB / 422 MB, free: 15.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.2658, allocations: 4 kB / 422 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002964/0.2688, allocations: 1.264 MB / 423.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.519e-05/0.2688, allocations: 13.09 kB / 423.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/0.2689, allocations: 19.94 kB / 423.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000629/0.2695, allocations: 135 kB / 423.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008747/0.2704, allocations: 255.5 kB / 423.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004567/0.275, allocations: 4.638 MB / 428.3 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.2765, allocations: 59.91 kB / 428.4 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.809e-05/0.2766, allocations: 56 kB / 428.4 MB, free: 8.367 MB / 366.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.0008168/0.2774, allocations: 357.4 kB / 428.8 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002263/0.2777, allocations: 142.2 kB / 428.9 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.2796, allocations: 0.8295 MB / 429.7 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.2796, allocations: 11.94 kB / 429.7 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2796, allocations: 0 / 429.7 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.2796, allocations: 3.984 kB / 429.7 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004571/0.2842, allocations: 2.323 MB / 432.1 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.976e-06/0.2842, allocations: 4 kB / 432.1 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005758/0.2848, allocations: 128.3 kB / 432.2 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004872/0.2853, allocations: 138.4 kB / 432.3 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.289e-05/0.2854, allocations: 19.98 kB / 432.3 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004823/0.2902, allocations: 4.791 MB / 437.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.2903, allocations: 12.06 kB / 437.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00295/0.2932, allocations: 1.292 MB / 438.4 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008298/0.2941, allocations: 279.3 kB / 438.7 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.2942, allocations: 20 kB / 438.7 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000702/0.2949, allocations: 39.95 kB / 438.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.2951, allocations: 68.45 kB / 438.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.2952, allocations: 23.98 kB / 438.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001521/0.2967, allocations: 0.8781 MB / 439.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2967, allocations: 0 / 439.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001751/0.2985, allocations: 332 kB / 440.1 MB, free: 12.04 MB / 382.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.0004262/0.2989, allocations: 135 kB / 440.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002397/0.3013, allocations: 1.128 MB / 441.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.3014, allocations: 4 kB / 441.3 MB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.3026, allocations: 0.7077 MB / 442 MB, free: 9.977 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.3045, allocations: 364.8 kB / 442.4 MB, free: 9.621 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006384/0.3109, allocations: 2.887 MB / 445.3 MB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009129/0.3119, allocations: 1.217 MB / 446.5 MB, free: 5.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008054/0.3127, allocations: 171.6 kB / 446.7 MB, free: 5.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002253/0.313, allocations: 91.42 kB / 446.8 MB, free: 5.148 MB / 382.1 MB Notification: Performance of SimCode: time 1.753e-06/0.313, allocations: 3.938 kB / 446.8 MB, free: 5.145 MB / 382.1 MB Notification: Performance of Templates: time 0.396/0.7089, allocations: 17.96 MB / 464.7 MB, free: 65.42 MB / 382.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)