Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.007424/0.007423, allocations: 100.8 kB / 15.73 MB, free: 5.98 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.001375/0.001376, allocations: 201.6 kB / 16.68 MB, free: 5.906 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.991/1.991, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001324/0.001324, allocations: 54.33 kB / 326.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1418, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01161/0.1535, allocations: 8.16 MB / 381.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006704/0.1602, allocations: 2.743 MB / 384.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.1622, allocations: 23.94 kB / 384.1 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002069/0.1643, allocations: 0.5519 MB / 384.7 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00212/0.1664, allocations: 480.2 kB / 385.1 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000689/0.1671, allocations: 255.7 kB / 385.4 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002278/0.1694, allocations: 1.514 MB / 386.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001028/0.1705, allocations: 0.5807 MB / 387.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.1715, allocations: 0.5681 MB / 388 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007058/0.1722, allocations: 0.6184 MB / 388.7 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.1723, allocations: 140 kB / 388.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003608/0.1727, allocations: 183.9 kB / 389 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.173, allocations: 282.9 kB / 389.3 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007622/0.1737, allocations: 0.6765 MB / 389.9 MB, free: 484 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002202/0.1759, allocations: 1.752 MB / 391.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.138e-06/0.176, allocations: 0 / 391.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.176, allocations: 0 / 391.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.544e-05/0.176, allocations: 0 / 391.7 MB, free: 14.71 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.002951/0.179, allocations: 1.484 MB / 393.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.179, allocations: 8.031 kB / 393.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007277/0.1798, allocations: 183.4 kB / 393.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001529/0.1813, allocations: 0.7697 MB / 394.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.066e-05/0.1814, allocations: 70 kB / 394.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.1815, allocations: 96 kB / 394.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.1834, allocations: 0.9464 MB / 395.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.512e-05/0.1835, allocations: 7.891 kB / 395.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.804e-05/0.1836, allocations: 40 kB / 395.3 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.756e-05/0.1837, allocations: 31.94 kB / 395.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.1852, allocations: 0.6481 MB / 396 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005675/0.1909, allocations: 3.907 MB / 399.9 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008888/0.1918, allocations: 451.8 kB / 400.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006451/0.1924, allocations: 276.6 kB / 400.6 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.599e-05/0.1925, allocations: 11.97 kB / 400.6 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.1925, allocations: 38.56 kB / 400.6 MB, free: 5.383 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.795e-06/0.1925, allocations: 0 / 400.6 MB, free: 5.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003692/0.1962, allocations: 1.545 MB / 402.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.828e-05/0.1963, allocations: 85.11 kB / 402.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001275/0.1976, allocations: 0.8448 MB / 403.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.1977, allocations: 29.7 kB / 403.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004696/0.1981, allocations: 0.5681 MB / 403.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.1983, allocations: 165.7 kB / 403.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002435/0.1986, allocations: 130.5 kB / 404 MB, free: 1.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1987, allocations: 334 kB / 404.3 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.1991, allocations: 173.9 kB / 404.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006452/0.1998, allocations: 467.6 kB / 404.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.2009, allocations: 0.6797 MB / 405.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.2009, allocations: 4 kB / 405.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001554/0.2025, allocations: 0.7981 MB / 406.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.2025, allocations: 8 kB / 406.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.2025, allocations: 8 kB / 406.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002964/0.2028, allocations: 81.97 kB / 406.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005454/0.2034, allocations: 159.7 kB / 406.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003063/0.2065, allocations: 3.149 MB / 409.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007037/0.2072, allocations: 31.98 kB / 409.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.2072, allocations: 39.98 kB / 409.9 MB, free: 11.39 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.0005016/0.2078, allocations: 257.5 kB / 410.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/0.2079, allocations: 94.88 kB / 410.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.209, allocations: 0.4952 MB / 410.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.209, allocations: 4 kB / 410.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.209, allocations: 0 / 410.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.209, allocations: 7.922 kB / 410.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.2113, allocations: 1.477 MB / 412.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2113, allocations: 0 / 412.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003309/0.2117, allocations: 71.89 kB / 412.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002008/0.2119, allocations: 81.83 kB / 412.4 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.988e-05/0.2119, allocations: 8 kB / 412.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002603/0.2145, allocations: 3.122 MB / 415.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.2145, allocations: 4.031 kB / 415.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.2159, allocations: 0.8021 MB / 416.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003615/0.2163, allocations: 204 kB / 416.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.869e-05/0.2164, allocations: 11.94 kB / 416.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.2168, allocations: 39.91 kB / 416.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.217, allocations: 35.7 kB / 416.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.217, allocations: 16 kB / 416.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008782/0.2179, allocations: 0.5693 MB / 417.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2179, allocations: 0 / 417.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001074/0.219, allocations: 208 kB / 417.4 MB, free: 3.449 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.000312/0.2193, allocations: 131.1 kB / 417.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.2208, allocations: 0.7016 MB / 418.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.2208, allocations: 4.562 kB / 418.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007209/0.2216, allocations: 458 kB / 418.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.2227, allocations: 239.4 kB / 418.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00304/0.2257, allocations: 1.73 MB / 420.6 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006904/0.2264, allocations: 1.013 MB / 421.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003908/0.2268, allocations: 111.3 kB / 421.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.227, allocations: 59.44 kB / 421.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.227, allocations: 0 / 421.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of Templates: time 0.02351/0.2505, allocations: 11.07 MB / 432.9 MB, free: 3.789 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)