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.001055/0.001055, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.01045/0.01045, allocations: 170.8 kB / 16.27 MB, free: 6.652 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.205/2.205, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0005172/0.0005172, allocations: 16 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4355/0.436, allocations: 47.58 MB / 327 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01232/0.4485, allocations: 7.666 MB / 334.7 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006851/0.4554, allocations: 2.672 MB / 337.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.4564, allocations: 27.94 kB / 337.4 MB, free: 8.977 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.4581, allocations: 498 kB / 337.9 MB, free: 8.488 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001437/0.4595, allocations: 413.1 kB / 338.3 MB, free: 8.082 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006478/0.4602, allocations: 227.8 kB / 338.5 MB, free: 7.859 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001757/0.462, allocations: 1.424 MB / 339.9 MB, free: 6.43 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007538/0.4627, allocations: 0.4968 MB / 340.4 MB, free: 5.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006143/0.4634, allocations: 481.6 kB / 340.9 MB, free: 5.438 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009727/0.4643, allocations: 0.5285 MB / 341.4 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.4644, allocations: 68 kB / 341.5 MB, free: 4.84 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003219/0.4648, allocations: 112 kB / 341.6 MB, free: 4.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.4649, allocations: 203 kB / 341.8 MB, free: 4.531 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006939/0.4656, allocations: 0.6117 MB / 342.4 MB, free: 3.91 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001631/0.4673, allocations: 1.642 MB / 344.1 MB, free: 2.262 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4673, allocations: 0 / 344.1 MB, free: 2.262 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4673, allocations: 0 / 344.1 MB, free: 2.262 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.4673, allocations: 0 / 344.1 MB, free: 2.262 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.002552/0.4699, allocations: 1.273 MB / 345.3 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.4699, allocations: 12.03 kB / 345.3 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000741/0.4707, allocations: 195.3 kB / 345.5 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.472, allocations: 0.7463 MB / 346.3 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.807e-05/0.4721, allocations: 74 kB / 346.4 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.4722, allocations: 103.9 kB / 346.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.4739, allocations: 0.9503 MB / 347.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.514e-05/0.4739, allocations: 7.938 kB / 347.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-05/0.474, allocations: 40 kB / 347.5 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.4741, allocations: 24 kB / 347.5 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.4754, allocations: 0.6637 MB / 348.1 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004991/0.4804, allocations: 3.98 MB / 352.1 MB, free: 9.852 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006819/0.4811, allocations: 447.9 kB / 352.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005859/0.4817, allocations: 276.7 kB / 352.8 MB, free: 9.113 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.4818, allocations: 11.97 kB / 352.8 MB, free: 9.102 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.4818, allocations: 38.56 kB / 352.9 MB, free: 9.055 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 4.468e-06/0.4818, allocations: 0 / 352.9 MB, free: 9.055 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.003715/0.4855, allocations: 1.595 MB / 354.5 MB, free: 7.367 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.4856, allocations: 81.11 kB / 354.5 MB, free: 7.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/0.4874, allocations: 0.8333 MB / 355.4 MB, free: 6.426 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.4874, allocations: 37.7 kB / 355.4 MB, free: 6.383 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004881/0.4879, allocations: 0.5681 MB / 356 MB, free: 5.805 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.488, allocations: 165.6 kB / 356.1 MB, free: 5.641 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.035e-05/0.4881, allocations: 61.69 kB / 356.2 MB, free: 5.574 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.4883, allocations: 330 kB / 356.5 MB, free: 5.246 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003747/0.4887, allocations: 185.9 kB / 356.7 MB, free: 5.062 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000565/0.4893, allocations: 471.6 kB / 357.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.4903, allocations: 0.6991 MB / 357.9 MB, free: 3.637 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.4903, allocations: 0 / 357.9 MB, free: 3.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001442/0.4918, allocations: 0.8023 MB / 358.7 MB, free: 2.82 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.4918, allocations: 11.98 kB / 358.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.4918, allocations: 12 kB / 358.7 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.4921, allocations: 73.69 kB / 358.8 MB, free: 2.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005412/0.4927, allocations: 167.8 kB / 358.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002648/0.4953, allocations: 2.884 MB / 361.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000673/0.496, allocations: 39.89 kB / 361.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.756e-05/0.4961, allocations: 35.98 kB / 361.9 MB, free: 15.33 MB / 302.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.0005068/0.4966, allocations: 265.6 kB / 362.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.4967, allocations: 86.97 kB / 362.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.4977, allocations: 0.5069 MB / 362.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.006e-06/0.4978, allocations: 4 kB / 362.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4978, allocations: 11.92 kB / 362.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4978, allocations: 0 / 362.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00221/0.5, allocations: 1.485 MB / 364.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.5, allocations: 7.938 kB / 364.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003424/0.5004, allocations: 84.11 kB / 364.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002188/0.5006, allocations: 69.73 kB / 364.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.095e-05/0.5006, allocations: 16 kB / 364.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00253/0.5032, allocations: 2.853 MB / 367.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.5032, allocations: 7.938 kB / 367.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.5046, allocations: 0.8168 MB / 368.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00029/0.5049, allocations: 203.9 kB / 368.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.024e-05/0.505, allocations: 11.94 kB / 368.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004226/0.5054, allocations: 35.97 kB / 368.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.583e-05/0.5055, allocations: 35.95 kB / 368.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-05/0.5055, allocations: 16.12 kB / 368.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009015/0.5065, allocations: 0.5693 MB / 369 MB, free: 7.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5065, allocations: 0 / 369 MB, free: 7.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009302/0.5074, allocations: 212 kB / 369.2 MB, free: 7.605 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 (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.000257/0.5077, allocations: 127.1 kB / 369.3 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.5089, allocations: 0.7135 MB / 370 MB, free: 6.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.509, allocations: 4.125 kB / 370 MB, free: 6.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000711/0.5097, allocations: 461.5 kB / 370.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.5111, allocations: 211.2 kB / 370.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003652/0.5148, allocations: 2.251 MB / 372.9 MB, free: 3.746 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00068/0.5155, allocations: 1.009 MB / 373.9 MB, free: 2.711 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004369/0.5159, allocations: 111.3 kB / 374 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.5161, allocations: 55.44 kB / 374.1 MB, free: 2.543 MB / 302.1 MB Notification: Performance of SimCode: time 6.22e-07/0.5161, allocations: 4 kB / 374.1 MB, free: 2.539 MB / 302.1 MB Notification: Performance of Templates: time 0.0201/0.5362, allocations: 10.09 MB / 384.2 MB, free: 8.434 MB / 318.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)