Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0009548/0.0009551, allocations: 89.59 kB / 16.65 MB, free: 6.535 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.001021/0.001021, allocations: 174 kB / 17.56 MB, free: 6.184 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.871/1.871, allocations: 205.4 MB / 223.7 MB, free: 12.98 MB / 190.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.0005681/0.0005681, allocations: 8 kB / 280.7 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1331, allocations: 47.59 MB / 328.3 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01371/0.1469, allocations: 11.43 MB / 339.8 MB, free: 8.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00864/0.1556, allocations: 3.243 MB / 343 MB, free: 4.996 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002147/0.1578, allocations: 39.88 kB / 343 MB, free: 4.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002277/0.1601, allocations: 0.5709 MB / 343.6 MB, free: 4.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.1633, allocations: 0.6245 MB / 344.2 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.1643, allocations: 359.7 kB / 344.6 MB, free: 3.402 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003554/0.1679, allocations: 2.28 MB / 346.9 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.1693, allocations: 0.8466 MB / 347.7 MB, free: 232 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001479/0.1708, allocations: 0.7386 MB / 348.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.1719, allocations: 0.8512 MB / 349.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000196/0.1721, allocations: 108 kB / 349.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004085/0.1725, allocations: 144 kB / 349.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002658/0.1728, allocations: 322.4 kB / 349.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.174, allocations: 0.9576 MB / 350.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002782/0.1768, allocations: 2.642 MB / 353.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.395e-05/0.1768, allocations: 8 kB / 353.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1768, allocations: 3.938 kB / 353.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.582e-05/0.1769, allocations: 0 / 353.5 MB, free: 10.43 MB / 302.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.003625/0.1805, allocations: 1.844 MB / 355.3 MB, free: 8.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.1806, allocations: 8.031 kB / 355.3 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009624/0.1816, allocations: 282.4 kB / 355.6 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/0.1835, allocations: 1.119 MB / 356.7 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.1836, allocations: 111.5 kB / 356.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002341/0.1838, allocations: 163.8 kB / 357 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002881/0.1867, allocations: 1.516 MB / 358.5 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.466e-05/0.1868, allocations: 11.89 kB / 358.5 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.1869, allocations: 68 kB / 358.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-05/0.187, allocations: 36 kB / 358.6 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002101/0.1891, allocations: 1.069 MB / 359.7 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009022/0.1981, allocations: 6.315 MB / 366 MB, free: 13.42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.1999, allocations: 0.6308 MB / 366.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009399/0.2009, allocations: 474.1 kB / 367.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.5e-05/0.2009, allocations: 12.7 kB / 367.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.194e-05/0.201, allocations: 39.12 kB / 367.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 5.02e-06/0.201, allocations: 0 / 367.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.006242/0.2073, allocations: 2.473 MB / 369.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.2075, allocations: 115.5 kB / 369.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002273/0.2098, allocations: 1.306 MB / 371 MB, free: 8.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.443e-05/0.2098, allocations: 37.7 kB / 371.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007/0.2105, allocations: 0.8414 MB / 371.9 MB, free: 7.336 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/0.2108, allocations: 272.2 kB / 372.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.2109, allocations: 89.67 kB / 372.3 MB, free: 6.973 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2111, allocations: 349.9 kB / 372.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006518/0.2117, allocations: 298.5 kB / 372.9 MB, free: 6.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000977/0.2127, allocations: 0.746 MB / 373.6 MB, free: 5.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.2144, allocations: 1.111 MB / 374.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-06/0.2144, allocations: 4 kB / 374.8 MB, free: 4.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002636/0.2171, allocations: 1.303 MB / 376.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.2171, allocations: 8 kB / 376.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/0.2171, allocations: 16 kB / 376.1 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005717/0.2177, allocations: 146.9 kB / 376.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000838/0.2185, allocations: 263.5 kB / 376.5 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3072/0.5257, allocations: 4.305 MB / 380.8 MB, free: 35.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.5275, allocations: 69.64 kB / 380.9 MB, free: 35.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.426e-05/0.5276, allocations: 55 kB / 380.9 MB, free: 35.79 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.0008661/0.5285, allocations: 350.9 kB / 381.3 MB, free: 35.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.5287, allocations: 140.7 kB / 381.4 MB, free: 35.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/0.5309, allocations: 0.877 MB / 382.3 MB, free: 35.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.5309, allocations: 7 kB / 382.3 MB, free: 35.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.5309, allocations: 1.062 kB / 382.3 MB, free: 35.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.5309, allocations: 4.594 kB / 382.3 MB, free: 35.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004841/0.5358, allocations: 2.372 MB / 384.7 MB, free: 35.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.5358, allocations: 3.797 kB / 384.7 MB, free: 35.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006234/0.5365, allocations: 131.9 kB / 384.8 MB, free: 35.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005154/0.537, allocations: 148.1 kB / 384.9 MB, free: 35.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.251e-05/0.537, allocations: 18.31 kB / 385 MB, free: 35.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003994/0.541, allocations: 4.457 MB / 389.4 MB, free: 31.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/0.5411, allocations: 4.656 kB / 389.4 MB, free: 31.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003046/0.5441, allocations: 1.354 MB / 390.8 MB, free: 30.95 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000715/0.5449, allocations: 281.6 kB / 391 MB, free: 30.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.545, allocations: 23.97 kB / 391.1 MB, free: 30.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006512/0.5457, allocations: 41.81 kB / 391.1 MB, free: 30.85 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.5459, allocations: 69.03 kB / 391.2 MB, free: 30.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.003e-05/0.5459, allocations: 23.52 kB / 391.2 MB, free: 30.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001691/0.5476, allocations: 0.8763 MB / 392.1 MB, free: 30.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5476, allocations: 0 / 392.1 MB, free: 30.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001782/0.5494, allocations: 332.2 kB / 392.4 MB, free: 30.73 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 (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.0002969/0.5497, allocations: 137.9 kB / 392.5 MB, free: 30.64 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002416/0.5521, allocations: 1.135 MB / 393.7 MB, free: 30.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/0.5522, allocations: 2.062 kB / 393.7 MB, free: 30.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.5533, allocations: 0.7222 MB / 394.4 MB, free: 29.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.5558, allocations: 350.3 kB / 394.7 MB, free: 29.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00668/0.5625, allocations: 3.757 MB / 398.5 MB, free: 27.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.5636, allocations: 1.217 MB / 399.7 MB, free: 27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008877/0.5645, allocations: 176.4 kB / 399.9 MB, free: 26.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.5647, allocations: 92.92 kB / 400 MB, free: 26.94 MB / 318.1 MB Notification: Performance of SimCode: time 9.91e-07/0.5647, allocations: 5.312 kB / 400 MB, free: 26.94 MB / 318.1 MB Notification: Performance of Templates: time 0.03116/0.5959, allocations: 16.62 MB / 416.6 MB, free: 15.41 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)