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.01007/0.01007, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001893/0.001893, allocations: 200.9 kB / 16.68 MB, free: 5.969 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.807/1.807, allocations: 205.1 MB / 222.6 MB, free: 4.551 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.001746/0.001746, allocations: 46.12 kB / 326.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1585, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0163/0.1749, allocations: 12.09 MB / 385.3 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008635/0.1836, allocations: 3.308 MB / 388.6 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002944/0.1866, allocations: 39.88 kB / 388.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003206/0.1898, allocations: 0.6673 MB / 389.3 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004159/0.194, allocations: 0.7286 MB / 390 MB, free: 412 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.1954, allocations: 403.5 kB / 390.4 MB, free: 8 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004256/0.1997, allocations: 2.413 MB / 392.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001718/0.2014, allocations: 0.9967 MB / 393.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002404/0.2038, allocations: 0.8949 MB / 394.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001613/0.2055, allocations: 0.98 MB / 395.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004279/0.2059, allocations: 232 kB / 395.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007136/0.2066, allocations: 272 kB / 396.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004051/0.207, allocations: 454.3 kB / 396.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.2084, allocations: 1.081 MB / 397.7 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003765/0.2122, allocations: 2.841 MB / 400.6 MB, free: 5.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.2122, allocations: 7.938 kB / 400.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2123, allocations: 4 kB / 400.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.568e-05/0.2123, allocations: 0 / 400.6 MB, free: 5.766 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.004892/0.2172, allocations: 2.201 MB / 402.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.362e-05/0.2173, allocations: 11.97 kB / 402.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.2185, allocations: 295.5 kB / 403.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002615/0.2212, allocations: 1.131 MB / 404.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.857e-05/0.2213, allocations: 115.5 kB / 404.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002469/0.2215, allocations: 163.9 kB / 404.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002873/0.2244, allocations: 1.504 MB / 406 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-05/0.2245, allocations: 11.94 kB / 406 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/0.2246, allocations: 64 kB / 406 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.494e-05/0.2246, allocations: 40 kB / 406.1 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.2267, allocations: 1.053 MB / 407.1 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009413/0.2361, allocations: 6.251 MB / 413.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.2378, allocations: 0.6153 MB / 414 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009601/0.2387, allocations: 466.4 kB / 414.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.446e-05/0.2388, allocations: 12.53 kB / 414.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.2389, allocations: 43.12 kB / 414.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 4.358e-06/0.2389, allocations: 0 / 414.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005506/0.2444, allocations: 2.391 MB / 416.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.22e-05/0.2445, allocations: 107.5 kB / 417 MB, free: 4.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.2465, allocations: 1.306 MB / 418.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.883e-05/0.2465, allocations: 41.7 kB / 418.4 MB, free: 3.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006885/0.2472, allocations: 0.8748 MB / 419.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.2475, allocations: 273.7 kB / 419.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003105/0.2478, allocations: 206.8 kB / 419.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.248, allocations: 349.9 kB / 420 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006108/0.2486, allocations: 282.5 kB / 420.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.2496, allocations: 0.7342 MB / 421.1 MB, free: 404 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.2512, allocations: 1.088 MB / 422.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.2512, allocations: 4 kB / 422.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002454/0.2537, allocations: 1.272 MB / 423.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.2537, allocations: 8 kB / 423.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.2538, allocations: 16 kB / 423.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005645/0.2543, allocations: 138.9 kB / 423.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008239/0.2552, allocations: 263.5 kB / 423.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004314/0.2595, allocations: 4.638 MB / 428.5 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.2606, allocations: 63.86 kB / 428.5 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.861e-05/0.2607, allocations: 52 kB / 428.6 MB, free: 8.207 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.0008013/0.2615, allocations: 357.4 kB / 428.9 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002299/0.2618, allocations: 147.1 kB / 429.1 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.2636, allocations: 0.8257 MB / 429.9 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.2636, allocations: 11.94 kB / 429.9 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2636, allocations: 0 / 429.9 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.2637, allocations: 4.125 kB / 429.9 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004134/0.2678, allocations: 2.338 MB / 432.3 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.2678, allocations: 4 kB / 432.3 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005438/0.2684, allocations: 123.9 kB / 432.4 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004671/0.2688, allocations: 142.8 kB / 432.5 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.035e-05/0.2689, allocations: 19.98 kB / 432.5 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004702/0.2736, allocations: 4.787 MB / 437.3 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.606e-05/0.2736, allocations: 4 kB / 437.3 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002465/0.2761, allocations: 1.309 MB / 438.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005439/0.2767, allocations: 288 kB / 438.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.2768, allocations: 20 kB / 438.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005973/0.2774, allocations: 39.95 kB / 439 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.2776, allocations: 72.31 kB / 439.1 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.2776, allocations: 23.98 kB / 439.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001332/0.279, allocations: 0.8742 MB / 439.9 MB, free: 12.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.279, allocations: 4 kB / 440 MB, free: 12.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001398/0.2804, allocations: 324 kB / 440.3 MB, free: 11.85 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.0003425/0.2808, allocations: 135.1 kB / 440.4 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00216/0.2829, allocations: 1.121 MB / 441.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.2829, allocations: 4 kB / 441.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.284, allocations: 0.7152 MB / 442.2 MB, free: 9.793 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/0.2855, allocations: 353 kB / 442.6 MB, free: 9.449 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005638/0.2912, allocations: 2.953 MB / 445.5 MB, free: 6.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009624/0.2921, allocations: 1.213 MB / 446.8 MB, free: 5.172 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007303/0.2929, allocations: 175.6 kB / 446.9 MB, free: 4.996 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.2931, allocations: 91.42 kB / 447 MB, free: 4.906 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2931, allocations: 0 / 447 MB, free: 4.906 MB / 382.1 MB Notification: Performance of Templates: time 0.3226/0.6157, allocations: 17.96 MB / 465 MB, free: 65.05 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)