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.0009575/0.0009577, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.00119/0.00119, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.4 MB / 222.1 MB, free: 5.34 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.0004541/0.0004542, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.267, allocations: 47.59 MB / 326.5 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007363/0.2744, allocations: 7.204 MB / 333.7 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005154/0.2796, allocations: 2.546 MB / 336.2 MB, free: 9.68 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009976/0.2806, allocations: 24.06 kB / 336.3 MB, free: 9.676 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001407/0.282, allocations: 479.5 kB / 336.7 MB, free: 9.207 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001362/0.2834, allocations: 393.1 kB / 337.1 MB, free: 8.82 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005171/0.2839, allocations: 159.8 kB / 337.3 MB, free: 8.664 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001547/0.2855, allocations: 1.362 MB / 338.6 MB, free: 7.297 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006989/0.2862, allocations: 423.2 kB / 339 MB, free: 6.867 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006333/0.2869, allocations: 469.9 kB / 339.5 MB, free: 6.406 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005943/0.2875, allocations: 0.5055 MB / 340 MB, free: 5.898 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.2876, allocations: 64 kB / 340.1 MB, free: 5.836 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002902/0.2879, allocations: 99.97 kB / 340.2 MB, free: 5.738 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.2881, allocations: 199 kB / 340.4 MB, free: 5.543 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.2883, allocations: 273.1 kB / 340.6 MB, free: 5.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001274/0.2896, allocations: 1.367 MB / 342 MB, free: 3.898 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.2896, allocations: 0 / 342 MB, free: 3.898 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2896, allocations: 0 / 342 MB, free: 3.898 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.2896, allocations: 0 / 342 MB, free: 3.898 MB / 270.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.002128/0.2918, allocations: 1.293 MB / 343.3 MB, free: 2.551 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.2918, allocations: 8.031 kB / 343.3 MB, free: 2.543 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006424/0.2925, allocations: 190.3 kB / 343.5 MB, free: 2.355 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.2935, allocations: 0.7231 MB / 344.2 MB, free: 1.59 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.265e-05/0.2936, allocations: 74 kB / 344.3 MB, free: 1.52 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.2937, allocations: 99.91 kB / 344.4 MB, free: 1.422 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.2953, allocations: 0.9464 MB / 345.3 MB, free: 456 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.257e-05/0.2954, allocations: 7.984 kB / 345.3 MB, free: 448 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.495e-05/0.2955, allocations: 40 kB / 345.4 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.2955, allocations: 24 kB / 345.4 MB, free: 384 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.2967, allocations: 0.6597 MB / 346.1 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004947/0.3017, allocations: 3.985 MB / 350 MB, free: 11.51 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007125/0.3024, allocations: 440.5 kB / 350.5 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005524/0.303, allocations: 276.7 kB / 350.7 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.785e-05/0.303, allocations: 11.94 kB / 350.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.303, allocations: 42.55 kB / 350.8 MB, free: 10.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 2.154e-06/0.3031, allocations: 0 / 350.8 MB, free: 10.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.002904/0.306, allocations: 1.56 MB / 352.3 MB, free: 9.066 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.306, allocations: 85.06 kB / 352.4 MB, free: 8.965 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.3071, allocations: 0.8371 MB / 353.3 MB, free: 8.117 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.3071, allocations: 33.7 kB / 353.3 MB, free: 8.078 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003855/0.3075, allocations: 0.5681 MB / 353.9 MB, free: 7.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.3077, allocations: 165.6 kB / 354 MB, free: 7.336 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-05/0.3077, allocations: 16 kB / 354 MB, free: 7.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3078, allocations: 338 kB / 354.4 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/0.3082, allocations: 177.9 kB / 354.6 MB, free: 6.812 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005378/0.3087, allocations: 471.6 kB / 355 MB, free: 6.219 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004601/0.3092, allocations: 251.8 kB / 355.3 MB, free: 5.973 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3092, allocations: 4 kB / 355.3 MB, free: 5.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001338/0.3105, allocations: 0.7907 MB / 356.1 MB, free: 5.164 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.3106, allocations: 12 kB / 356.1 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.3106, allocations: 8.047 kB / 356.1 MB, free: 5.145 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002767/0.3109, allocations: 89.84 kB / 356.2 MB, free: 5.051 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004995/0.3114, allocations: 159.7 kB / 356.3 MB, free: 4.895 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.3136, allocations: 2.88 MB / 359.2 MB, free: 1.742 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/0.3143, allocations: 39.89 kB / 359.2 MB, free: 1.703 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.81e-05/0.3143, allocations: 32 kB / 359.3 MB, free: 1.672 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005268/0.3149, allocations: 265.6 kB / 359.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.315, allocations: 90.91 kB / 359.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.316, allocations: 0.507 MB / 360.1 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.316, allocations: 8 kB / 360.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3161, allocations: 0 / 360.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3161, allocations: 7.938 kB / 360.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002476/0.3185, allocations: 1.493 MB / 361.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.3186, allocations: 4 kB / 361.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/0.3189, allocations: 84.11 kB / 361.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002101/0.3191, allocations: 69.62 kB / 361.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.3192, allocations: 12.12 kB / 361.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/0.3216, allocations: 2.845 MB / 364.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.3216, allocations: 4.031 kB / 364.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.323, allocations: 0.8204 MB / 365.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004109/0.3235, allocations: 204 kB / 365.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.3237, allocations: 12 kB / 365.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004765/0.3241, allocations: 35.97 kB / 365.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.3243, allocations: 31.95 kB / 365.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-05/0.3243, allocations: 19.94 kB / 365.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001051/0.3254, allocations: 0.5731 MB / 366.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3254, allocations: 0 / 366.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001094/0.3265, allocations: 212 kB / 366.5 MB, free: 9.949 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002757/0.3268, allocations: 127.2 kB / 366.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.3281, allocations: 0.7131 MB / 367.4 MB, free: 9.078 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3282, allocations: 4 kB / 367.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006914/0.3289, allocations: 454.2 kB / 367.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00123/0.3301, allocations: 207.4 kB / 368 MB, free: 8.402 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.3336, allocations: 2.138 MB / 370.2 MB, free: 6.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006974/0.3343, allocations: 1.013 MB / 371.2 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004723/0.3348, allocations: 107.3 kB / 371.3 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.3349, allocations: 63.38 kB / 371.3 MB, free: 5.004 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3349, allocations: 0 / 371.3 MB, free: 5.004 MB / 302.1 MB Notification: Performance of Templates: time 0.02116/0.3561, allocations: 9.788 MB / 381.1 MB, free: 11.2 MB / 318.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)