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.0105/0.0105, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.002078/0.002078, allocations: 188.9 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.046/2.046, allocations: 205.1 MB / 222.6 MB, free: 4.484 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.001244/0.001244, allocations: 50.11 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1451, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01115/0.1563, allocations: 8.172 MB / 381.4 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006531/0.1629, allocations: 2.735 MB / 384.1 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001334/0.1643, allocations: 23.94 kB / 384.1 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.1662, allocations: 0.5558 MB / 384.7 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001861/0.1681, allocations: 484.2 kB / 385.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006878/0.1688, allocations: 255.7 kB / 385.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002066/0.1709, allocations: 1.502 MB / 386.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009321/0.1718, allocations: 0.5885 MB / 387.5 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.1728, allocations: 0.5603 MB / 388 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008365/0.1737, allocations: 0.6105 MB / 388.7 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002128/0.1739, allocations: 140 kB / 388.8 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003714/0.1743, allocations: 184 kB / 389 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002497/0.1745, allocations: 279 kB / 389.2 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006322/0.1752, allocations: 0.6765 MB / 389.9 MB, free: 476 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002136/0.1773, allocations: 1.759 MB / 391.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.797e-06/0.1773, allocations: 0 / 391.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1774, allocations: 0 / 391.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.529e-05/0.1774, allocations: 4 kB / 391.7 MB, free: 14.69 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.002895/0.1803, allocations: 1.506 MB / 393.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.1804, allocations: 16.02 kB / 393.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006465/0.181, allocations: 203.9 kB / 393.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.1823, allocations: 0.7548 MB / 394.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.873e-05/0.1824, allocations: 78 kB / 394.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.1825, allocations: 99.95 kB / 394.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001815/0.1843, allocations: 0.9424 MB / 395.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.549e-05/0.1844, allocations: 7.984 kB / 395.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.052e-05/0.1845, allocations: 44 kB / 395.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/0.1845, allocations: 24 kB / 395.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.1858, allocations: 0.6481 MB / 396 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006126/0.192, allocations: 3.92 MB / 399.9 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009503/0.1929, allocations: 443.9 kB / 400.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006437/0.1936, allocations: 288.6 kB / 400.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.764e-05/0.1937, allocations: 7.984 kB / 400.6 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.1937, allocations: 38.56 kB / 400.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 3.317e-06/0.1937, allocations: 4 kB / 400.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003139/0.1969, allocations: 1.57 MB / 402.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/0.1969, allocations: 81.11 kB / 402.3 MB, free: 3.547 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001227/0.1982, allocations: 0.845 MB / 403.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.195e-05/0.1982, allocations: 37.7 kB / 403.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005885/0.1988, allocations: 0.5775 MB / 403.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001688/0.199, allocations: 170.6 kB / 404 MB, free: 1.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002203/0.1992, allocations: 130.6 kB / 404.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.1995, allocations: 333.9 kB / 404.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/0.1999, allocations: 173.9 kB / 404.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007005/0.2006, allocations: 471.6 kB / 405 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.2017, allocations: 0.6914 MB / 405.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.2017, allocations: 4 kB / 405.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001475/0.2032, allocations: 0.787 MB / 406.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.2032, allocations: 8 kB / 406.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.2032, allocations: 12 kB / 406.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003203/0.2036, allocations: 81.92 kB / 406.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000519/0.2041, allocations: 159.7 kB / 406.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003095/0.2072, allocations: 3.146 MB / 409.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005714/0.2078, allocations: 39.94 kB / 410 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.335e-05/0.2079, allocations: 32 kB / 410 MB, free: 11.27 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.0004693/0.2083, allocations: 269.5 kB / 410.3 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.2085, allocations: 91.44 kB / 410.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.2095, allocations: 0.503 MB / 410.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2095, allocations: 4 kB / 410.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2095, allocations: 4 kB / 410.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.2095, allocations: 0 / 410.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/0.2119, allocations: 1.47 MB / 412.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.2119, allocations: 8.219 kB / 412.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003326/0.2123, allocations: 75.84 kB / 412.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002032/0.2125, allocations: 69.67 kB / 412.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.2125, allocations: 12 kB / 412.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002634/0.2152, allocations: 3.13 MB / 415.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2152, allocations: 0 / 415.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.2165, allocations: 0.8104 MB / 416.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003426/0.2169, allocations: 204.5 kB / 416.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.217, allocations: 15.94 kB / 416.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004432/0.2174, allocations: 27.97 kB / 416.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.2175, allocations: 39.7 kB / 416.7 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.2176, allocations: 12 kB / 416.7 MB, free: 4.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009296/0.2185, allocations: 0.5732 MB / 417.3 MB, free: 3.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2185, allocations: 0 / 417.3 MB, free: 3.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009328/0.2195, allocations: 211.9 kB / 417.5 MB, free: 3.309 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.0002743/0.2198, allocations: 131.1 kB / 417.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.2211, allocations: 0.7011 MB / 418.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.2212, allocations: 3.938 kB / 418.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007072/0.2219, allocations: 455.5 kB / 418.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.223, allocations: 231.1 kB / 419 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003277/0.2263, allocations: 1.766 MB / 420.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008045/0.2271, allocations: 1.013 MB / 421.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004643/0.2276, allocations: 107.3 kB / 421.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.2278, allocations: 59.42 kB / 421.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2278, allocations: 0 / 421.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of Templates: time 0.02435/0.2521, allocations: 10.83 MB / 432.8 MB, free: 3.863 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)