Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01624/0.01624, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.003102/0.003102, allocations: 193.5 kB / 16.67 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.889/1.889, allocations: 205.1 MB / 222.6 MB, free: 4.496 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.001516/0.001516, allocations: 54.05 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1414, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01322/0.1547, allocations: 8.184 MB / 381.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007901/0.1627, allocations: 2.724 MB / 384.1 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.1653, allocations: 23.94 kB / 384.1 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002583/0.1679, allocations: 0.5871 MB / 384.7 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002697/0.1707, allocations: 0.5041 MB / 385.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.1718, allocations: 255.7 kB / 385.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003663/0.1754, allocations: 1.514 MB / 387 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001517/0.177, allocations: 0.5846 MB / 387.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001669/0.1787, allocations: 0.5719 MB / 388.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00166/0.1803, allocations: 0.6028 MB / 388.7 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004752/0.1808, allocations: 140 kB / 388.9 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007235/0.1816, allocations: 192 kB / 389 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002666/0.1818, allocations: 282.9 kB / 389.3 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008883/0.1827, allocations: 0.6687 MB / 390 MB, free: 400 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002663/0.1854, allocations: 1.752 MB / 391.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.169e-05/0.1854, allocations: 0 / 391.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1855, allocations: 4 kB / 391.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.452e-05/0.1855, allocations: 4 kB / 391.7 MB, free: 14.62 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003064/0.1886, allocations: 1.48 MB / 393.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.1887, allocations: 12.03 kB / 393.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007749/0.1894, allocations: 187.4 kB / 393.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001703/0.1912, allocations: 0.7579 MB / 394.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.825e-05/0.1913, allocations: 74 kB / 394.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.1914, allocations: 96 kB / 394.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/0.1934, allocations: 0.9464 MB / 395.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.74e-05/0.1935, allocations: 7.906 kB / 395.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.1936, allocations: 40 kB / 395.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/0.1936, allocations: 24 kB / 395.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.195, allocations: 0.652 MB / 396 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006547/0.2016, allocations: 3.903 MB / 399.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008107/0.2024, allocations: 451.9 kB / 400.4 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007368/0.2032, allocations: 284.6 kB / 400.6 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.723e-05/0.2033, allocations: 8 kB / 400.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.859e-05/0.2033, allocations: 38.5 kB / 400.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 4.008e-06/0.2033, allocations: 0 / 400.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003698/0.207, allocations: 1.553 MB / 402.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/0.2071, allocations: 85.05 kB / 402.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.2085, allocations: 0.841 MB / 403.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.932e-05/0.2086, allocations: 41.7 kB / 403.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004828/0.2091, allocations: 0.5643 MB / 403.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.2092, allocations: 153.8 kB / 403.9 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.2095, allocations: 138.5 kB / 404 MB, free: 1.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.2096, allocations: 333.9 kB / 404.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003586/0.21, allocations: 169.9 kB / 404.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006038/0.2106, allocations: 475.6 kB / 405 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.2117, allocations: 0.6797 MB / 405.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.341e-06/0.2117, allocations: 4 kB / 405.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00148/0.2132, allocations: 0.7904 MB / 406.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/0.2132, allocations: 8 kB / 406.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.2133, allocations: 12 kB / 406.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003311/0.2136, allocations: 85.61 kB / 406.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005374/0.2142, allocations: 159.7 kB / 406.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/0.2171, allocations: 3.15 MB / 409.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008529/0.218, allocations: 35.98 kB / 409.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/0.2181, allocations: 32 kB / 410 MB, free: 11.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005864/0.2187, allocations: 265.6 kB / 410.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.2188, allocations: 90.88 kB / 410.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.22, allocations: 0.4912 MB / 410.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.22, allocations: 8 kB / 410.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.22, allocations: 4 kB / 410.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.22, allocations: 3.984 kB / 410.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.2224, allocations: 1.47 MB / 412.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.2224, allocations: 4 kB / 412.3 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.2227, allocations: 72.12 kB / 412.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002179/0.2229, allocations: 69.67 kB / 412.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.223, allocations: 16 kB / 412.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002649/0.2256, allocations: 3.13 MB / 415.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2257, allocations: 4.062 kB / 415.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.2272, allocations: 0.7981 MB / 416.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004076/0.2276, allocations: 204 kB / 416.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.2277, allocations: 23.86 kB / 416.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/0.2282, allocations: 23.98 kB / 416.6 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.2283, allocations: 43.64 kB / 416.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.2284, allocations: 8 kB / 416.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009582/0.2293, allocations: 0.581 MB / 417.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2294, allocations: 4 kB / 417.3 MB, free: 3.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001042/0.2304, allocations: 204 kB / 417.5 MB, free: 3.352 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (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.0003061/0.2307, allocations: 115.2 kB / 417.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.2321, allocations: 0.7097 MB / 418.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.2322, allocations: 0 / 418.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007167/0.2329, allocations: 454 kB / 418.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.234, allocations: 240 kB / 418.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003348/0.2374, allocations: 1.73 MB / 420.7 MB, free: 8 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008065/0.2382, allocations: 1.017 MB / 421.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005077/0.2387, allocations: 103.3 kB / 421.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.2389, allocations: 59.44 kB / 421.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of SimCode: time 1.613e-06/0.2389, allocations: 0 / 421.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of Templates: time 0.02633/0.2652, allocations: 10.83 MB / 432.7 MB, free: 3.945 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)