Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001595/0.001595, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.002013/0.002014, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.835/1.835, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.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.001546/0.001546, allocations: 47.92 kB / 279.3 MB, free: 3.57 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1396, allocations: 46.63 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01266/0.1523, allocations: 8.141 MB / 334.1 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007771/0.1601, allocations: 2.713 MB / 336.8 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00197/0.1622, allocations: 31.88 kB / 336.8 MB, free: 9.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002352/0.1646, allocations: 494.1 kB / 337.3 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003229/0.1679, allocations: 417.1 kB / 337.7 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.1689, allocations: 227.8 kB / 338 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002715/0.1716, allocations: 1.42 MB / 339.4 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.1729, allocations: 0.5045 MB / 339.9 MB, free: 6.867 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0012/0.1741, allocations: 0.5016 MB / 340.4 MB, free: 6.363 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001227/0.1753, allocations: 0.5793 MB / 341 MB, free: 5.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001822/0.1755, allocations: 84 kB / 341 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003881/0.1759, allocations: 128 kB / 341.2 MB, free: 5.574 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00021/0.1761, allocations: 230.9 kB / 341.4 MB, free: 5.348 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006564/0.1768, allocations: 0.6218 MB / 342 MB, free: 4.723 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.1784, allocations: 1.689 MB / 343.7 MB, free: 3.027 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1784, allocations: 0 / 343.7 MB, free: 3.027 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1784, allocations: 0 / 343.7 MB, free: 3.027 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.1784, allocations: 0 / 343.7 MB, free: 3.027 MB / 286.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.002481/0.1809, allocations: 1.48 MB / 345.2 MB, free: 1.492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.1809, allocations: 8.031 kB / 345.2 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006947/0.1816, allocations: 187.3 kB / 345.4 MB, free: 1.301 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.1828, allocations: 0.7502 MB / 346.1 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.595e-05/0.1829, allocations: 78 kB / 346.2 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.183, allocations: 99.91 kB / 346.3 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.1847, allocations: 0.9464 MB / 347.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.299e-05/0.1848, allocations: 4 kB / 347.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.144e-05/0.1849, allocations: 40 kB / 347.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.354e-05/0.1849, allocations: 24 kB / 347.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.1862, allocations: 0.6481 MB / 348 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005619/0.1918, allocations: 3.961 MB / 351.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007671/0.1926, allocations: 447.9 kB / 352.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006035/0.1932, allocations: 268.7 kB / 352.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.212e-05/0.1933, allocations: 7.984 kB / 352.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.1933, allocations: 38.56 kB / 352.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.076e-06/0.1933, allocations: 0 / 352.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003149/0.1965, allocations: 1.541 MB / 354.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.1966, allocations: 89.09 kB / 354.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.1977, allocations: 0.8333 MB / 355.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.1978, allocations: 29.7 kB / 355.2 MB, free: 7.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004018/0.1982, allocations: 0.572 MB / 355.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.1983, allocations: 165.6 kB / 355.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.1985, allocations: 130.5 kB / 356 MB, free: 6.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1986, allocations: 337.9 kB / 356.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003399/0.199, allocations: 169.9 kB / 356.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.1995, allocations: 467.6 kB / 357 MB, free: 5.082 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009577/0.2005, allocations: 0.6835 MB / 357.7 MB, free: 4.266 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.2005, allocations: 4 kB / 357.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001467/0.202, allocations: 0.7867 MB / 358.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.202, allocations: 16.06 kB / 358.5 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.202, allocations: 8 kB / 358.5 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002902/0.2023, allocations: 73.69 kB / 358.5 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005236/0.2029, allocations: 159.7 kB / 358.7 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002558/0.2054, allocations: 2.884 MB / 361.6 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007162/0.2062, allocations: 43.95 kB / 361.6 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.375e-05/0.2063, allocations: 32.08 kB / 361.7 MB, free: 15.98 MB / 318.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.0006483/0.2069, allocations: 261.5 kB / 361.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002673/0.2072, allocations: 90.91 kB / 362 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.2084, allocations: 0.499 MB / 362.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.2084, allocations: 8 kB / 362.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2084, allocations: 0 / 362.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.2084, allocations: 0 / 362.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002697/0.2111, allocations: 1.48 MB / 364 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.2111, allocations: 7.984 kB / 364 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/0.2115, allocations: 75.89 kB / 364.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002272/0.2117, allocations: 77.83 kB / 364.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.563e-05/0.2118, allocations: 8 kB / 364.2 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002367/0.2141, allocations: 2.853 MB / 367 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2142, allocations: 0 / 367 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.2156, allocations: 0.7933 MB / 367.8 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000457/0.2161, allocations: 208 kB / 368 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/0.2163, allocations: 15.94 kB / 368 MB, free: 9.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005534/0.2169, allocations: 23.98 kB / 368 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.217, allocations: 31.95 kB / 368.1 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.217, allocations: 19.98 kB / 368.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001048/0.2181, allocations: 0.5693 MB / 368.7 MB, free: 8.527 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2181, allocations: 0 / 368.7 MB, free: 8.527 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001132/0.2192, allocations: 212 kB / 368.9 MB, free: 8.32 MB / 318.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.0003103/0.2196, allocations: 123.2 kB / 369 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001512/0.2211, allocations: 0.6971 MB / 369.7 MB, free: 7.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.2211, allocations: 4 kB / 369.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007964/0.2219, allocations: 454.6 kB / 370.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.2236, allocations: 219.2 kB / 370.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00465/0.2283, allocations: 2.179 MB / 372.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001219/0.2295, allocations: 1.009 MB / 373.5 MB, free: 3.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006624/0.2302, allocations: 107.3 kB / 373.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.2304, allocations: 51.44 kB / 373.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of SimCode: time 1.463e-06/0.2304, allocations: 0 / 373.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of Templates: time 0.2527/0.4831, allocations: 10.18 MB / 383.9 MB, free: 50.68 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)