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.008873/0.008873, allocations: 105.5 kB / 15.74 MB, free: 6.02 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.001421/0.001421, allocations: 193.2 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 1.94/1.94, allocations: 205.1 MB / 222.6 MB, free: 4.555 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.001143/0.001144, allocations: 49.97 kB / 326.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1338, 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.01041/0.1442, allocations: 8.168 MB / 381.4 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005934/0.1502, allocations: 2.732 MB / 384.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.1519, allocations: 23.94 kB / 384.1 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001918/0.1538, allocations: 0.5792 MB / 384.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001963/0.1558, allocations: 0.5041 MB / 385.2 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007416/0.1566, allocations: 255.7 kB / 385.4 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002156/0.1587, allocations: 1.518 MB / 387 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009307/0.1597, allocations: 0.5846 MB / 387.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009768/0.1607, allocations: 0.5719 MB / 388.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007528/0.1614, allocations: 0.6105 MB / 388.7 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001736/0.1616, allocations: 144 kB / 388.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003519/0.162, allocations: 176 kB / 389 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.1622, allocations: 286.9 kB / 389.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007086/0.1629, allocations: 0.6726 MB / 390 MB, free: 404 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.1651, allocations: 1.763 MB / 391.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.1651, allocations: 0 / 391.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1651, allocations: 3.938 kB / 391.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.744e-05/0.1651, allocations: 0 / 391.8 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.003163/0.1683, allocations: 1.514 MB / 393.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.1684, allocations: 8.031 kB / 393.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007129/0.1691, allocations: 200 kB / 393.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/0.1706, allocations: 0.7548 MB / 394.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.392e-05/0.1707, allocations: 78 kB / 394.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.1708, allocations: 103.9 kB / 394.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/0.1725, allocations: 0.9425 MB / 395.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.53e-05/0.1726, allocations: 0 / 395.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-05/0.1727, allocations: 47.98 kB / 395.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.1727, allocations: 24 kB / 395.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.174, allocations: 0.6481 MB / 396.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005766/0.1798, allocations: 3.927 MB / 400 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007608/0.1806, allocations: 443.9 kB / 400.4 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006478/0.1812, allocations: 280.6 kB / 400.7 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.024e-05/0.1813, allocations: 11.92 kB / 400.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/0.1813, allocations: 38.56 kB / 400.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.956e-06/0.1813, allocations: 4 kB / 400.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003537/0.1849, allocations: 1.566 MB / 402.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.479e-05/0.185, allocations: 81.11 kB / 402.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001303/0.1863, allocations: 0.845 MB / 403.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.1864, allocations: 29.7 kB / 403.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005274/0.1869, allocations: 0.5775 MB / 403.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.187, allocations: 174.5 kB / 404 MB, free: 1.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000217/0.1873, allocations: 134.6 kB / 404.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.1875, allocations: 334 kB / 404.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003798/0.1879, allocations: 173.9 kB / 404.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005989/0.1885, allocations: 471.6 kB / 405.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.1895, allocations: 0.6758 MB / 405.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.844e-06/0.1895, allocations: 8 kB / 405.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00156/0.1911, allocations: 0.7948 MB / 406.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.1911, allocations: 12 kB / 406.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.1912, allocations: 8 kB / 406.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003312/0.1915, allocations: 89.8 kB / 406.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005505/0.1921, allocations: 163.7 kB / 406.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.1949, allocations: 3.142 MB / 410 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007491/0.1956, allocations: 35.94 kB / 410 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-05/0.1957, allocations: 36 kB / 410.1 MB, free: 11.2 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.000582/0.1963, allocations: 273.5 kB / 410.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.1964, allocations: 91.44 kB / 410.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.1975, allocations: 0.4953 MB / 410.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.1975, allocations: 7.984 kB / 410.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1975, allocations: 0 / 410.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.1975, allocations: 3.984 kB / 410.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002467/0.2, allocations: 1.47 MB / 412.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/0.2, allocations: 8.219 kB / 412.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003588/0.2004, allocations: 75.89 kB / 412.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000257/0.2007, allocations: 65.69 kB / 412.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.2007, allocations: 15.98 kB / 412.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003001/0.2037, allocations: 3.126 MB / 415.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.2037, allocations: 3.938 kB / 415.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.2054, allocations: 0.8066 MB / 416.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003891/0.2058, allocations: 208.5 kB / 416.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.194e-05/0.2059, allocations: 11.94 kB / 416.7 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.2064, allocations: 27.98 kB / 416.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.2065, allocations: 39.64 kB / 416.8 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.2065, allocations: 20 kB / 416.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001075/0.2076, allocations: 0.5732 MB / 417.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2076, allocations: 0 / 417.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001031/0.2086, allocations: 211.9 kB / 417.6 MB, free: 3.23 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.0002944/0.2089, allocations: 123.2 kB / 417.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.2103, allocations: 0.701 MB / 418.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2103, allocations: 0 / 418.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007259/0.2111, allocations: 463.5 kB / 418.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.2122, allocations: 227 kB / 419.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003813/0.216, allocations: 1.763 MB / 420.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009712/0.217, allocations: 1.009 MB / 421.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005128/0.2175, allocations: 107.3 kB / 422 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.2177, allocations: 55.44 kB / 422 MB, free: 14.66 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2177, allocations: 0 / 422 MB, free: 14.66 MB / 366.1 MB Notification: Performance of Templates: time 0.02512/0.2429, allocations: 10.84 MB / 432.9 MB, free: 3.793 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)