Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007993/0.007993, allocations: 95.61 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.001422/0.001422, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.882/1.882, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001508/0.001508, allocations: 54.52 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1158, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.009122/0.125, allocations: 7.927 MB / 381.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004904/0.1299, allocations: 2.61 MB / 383.7 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/0.1311, allocations: 20 kB / 383.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.1326, allocations: 0.5085 MB / 384.2 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001395/0.1341, allocations: 400.8 kB / 384.6 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005343/0.1346, allocations: 215.6 kB / 384.8 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.136, allocations: 1.226 MB / 386.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007706/0.1368, allocations: 0.5331 MB / 386.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005909/0.1374, allocations: 486 kB / 387.1 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006167/0.138, allocations: 0.5172 MB / 387.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.1381, allocations: 116 kB / 387.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003353/0.1385, allocations: 156 kB / 387.9 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.1387, allocations: 235.1 kB / 388.1 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004737/0.1392, allocations: 0.5638 MB / 388.7 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001538/0.1407, allocations: 1.467 MB / 390.1 MB, free: 280 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1407, allocations: 4 kB / 390.1 MB, free: 276 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1407, allocations: 0 / 390.1 MB, free: 276 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.687e-05/0.1408, allocations: 0 / 390.1 MB, free: 276 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002283/0.1431, allocations: 1.323 MB / 391.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1431, allocations: 12.03 kB / 391.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000477/0.1436, allocations: 160.1 kB / 391.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/0.1446, allocations: 0.6499 MB / 392.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/0.1447, allocations: 58.38 kB / 392.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.1448, allocations: 91.89 kB / 392.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.1462, allocations: 0.8184 MB / 393.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.1463, allocations: 7.984 kB / 393.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.715e-05/0.1464, allocations: 39.94 kB / 393.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.1464, allocations: 20 kB / 393.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.1475, allocations: 0.5426 MB / 393.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004284/0.1518, allocations: 3.567 MB / 397.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00052/0.1523, allocations: 242.6 kB / 397.6 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.1526, allocations: 128.7 kB / 397.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.496e-05/0.1526, allocations: 0 / 397.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.275e-05/0.1527, allocations: 38.56 kB / 397.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.322e-06/0.1527, allocations: 0 / 397.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002123/0.1548, allocations: 1.09 MB / 398.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.1549, allocations: 81.05 kB / 399 MB, free: 6.938 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009556/0.1559, allocations: 0.7586 MB / 399.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.1559, allocations: 33.7 kB / 399.8 MB, free: 6.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003599/0.1563, allocations: 0.5306 MB / 400.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.711e-05/0.1564, allocations: 115 kB / 400.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.1565, allocations: 126.2 kB / 400.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.1567, allocations: 382.8 kB / 400.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002903/0.157, allocations: 129.2 kB / 401 MB, free: 4.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005103/0.1576, allocations: 446.2 kB / 401.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008361/0.1584, allocations: 0.618 MB / 402.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.1584, allocations: 4 kB / 402.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001127/0.1596, allocations: 0.6499 MB / 402.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.1596, allocations: 11.94 kB / 402.8 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.1596, allocations: 15.94 kB / 402.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001741/0.1598, allocations: 37.62 kB / 402.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004661/0.1603, allocations: 151.7 kB / 403 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.1615, allocations: 1.386 MB / 404.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004558/0.1619, allocations: 39.92 kB / 404.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.077e-05/0.162, allocations: 36 kB / 404.4 MB, free: 1.016 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003349/0.1623, allocations: 253.5 kB / 404.7 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.1625, allocations: 79.48 kB / 404.7 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006605/0.1631, allocations: 333.9 kB / 405.1 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1631, allocations: 4 kB / 405.1 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.1631, allocations: 0 / 405.1 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1632, allocations: 3.938 kB / 405.1 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.1648, allocations: 1.114 MB / 406.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1648, allocations: 4.031 kB / 406.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.1651, allocations: 63.89 kB / 406.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.834e-05/0.1652, allocations: 24.84 kB / 406.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.1652, allocations: 8 kB / 406.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.1662, allocations: 1.375 MB / 407.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.1663, allocations: 7.969 kB / 407.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009134/0.1672, allocations: 0.573 MB / 408.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.1675, allocations: 184.6 kB / 408.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.746e-05/0.1675, allocations: 8 kB / 408.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003227/0.1679, allocations: 19.98 kB / 408.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.168, allocations: 23.97 kB / 408.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.168, allocations: 12 kB / 408.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006889/0.1687, allocations: 0.5186 MB / 409 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1687, allocations: 0 / 409 MB, free: 12.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006992/0.1694, allocations: 171.9 kB / 409.2 MB, free: 11.96 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000261/0.1697, allocations: 115.1 kB / 409.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009424/0.1706, allocations: 487.9 kB / 409.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1706, allocations: 4 kB / 409.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003813/0.171, allocations: 243.8 kB / 410 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009045/0.1719, allocations: 183.2 kB / 410.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.1742, allocations: 1.48 MB / 411.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.1747, allocations: 0.9526 MB / 412.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002869/0.175, allocations: 94.11 kB / 412.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.1751, allocations: 51.44 kB / 412.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1751, allocations: 0 / 412.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of Templates: time 0.01791/0.193, allocations: 8.583 MB / 421.3 MB, free: 15.65 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1)