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.001789/0.00179, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002466/0.002467, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.85/1.85, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.001309/0.001309, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3573, allocations: 46.63 MB / 325.3 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.0104/0.3678, allocations: 8.179 MB / 333.5 MB, free: 11.33 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004986/0.3728, allocations: 2.736 MB / 336.2 MB, free: 8.957 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008055/0.3737, allocations: 23.94 kB / 336.3 MB, free: 8.934 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.375, allocations: 0.548 MB / 336.8 MB, free: 8.383 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001127/0.3762, allocations: 484.1 kB / 337.3 MB, free: 7.906 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004981/0.3767, allocations: 251.7 kB / 337.5 MB, free: 7.66 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001384/0.3781, allocations: 1.502 MB / 339 MB, free: 6.152 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007844/0.3789, allocations: 0.5886 MB / 339.6 MB, free: 5.543 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006858/0.3796, allocations: 0.5603 MB / 340.2 MB, free: 4.98 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006517/0.3802, allocations: 0.6066 MB / 340.8 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001721/0.3804, allocations: 140 kB / 340.9 MB, free: 4.234 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003238/0.3807, allocations: 176 kB / 341.1 MB, free: 4.062 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.381, allocations: 294.9 kB / 341.4 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005805/0.3816, allocations: 0.6687 MB / 342 MB, free: 3.102 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001613/0.3832, allocations: 1.732 MB / 343.8 MB, free: 1.363 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3832, allocations: 3.938 kB / 343.8 MB, free: 1.359 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3832, allocations: 0 / 343.8 MB, free: 1.359 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.3832, allocations: 0 / 343.8 MB, free: 1.359 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.002244/0.3855, allocations: 1.476 MB / 345.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3855, allocations: 8.031 kB / 345.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006471/0.3862, allocations: 191.3 kB / 345.4 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.3873, allocations: 0.7424 MB / 346.2 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.608e-05/0.3873, allocations: 77.98 kB / 346.3 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.3875, allocations: 99.91 kB / 346.4 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.389, allocations: 0.9425 MB / 347.3 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.18e-05/0.389, allocations: 4 kB / 347.3 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.092e-05/0.3891, allocations: 40 kB / 347.4 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.212e-05/0.3891, allocations: 27.94 kB / 347.4 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.3903, allocations: 0.6559 MB / 348 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004866/0.3952, allocations: 3.961 MB / 352 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00069/0.3959, allocations: 439.9 kB / 352.4 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005678/0.3965, allocations: 268.7 kB / 352.7 MB, free: 8.066 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-05/0.3965, allocations: 8 kB / 352.7 MB, free: 8.059 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.3966, allocations: 34.56 kB / 352.7 MB, free: 8.016 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 2.114e-06/0.3966, allocations: 0 / 352.7 MB, free: 8.016 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.00285/0.3994, allocations: 1.553 MB / 354.3 MB, free: 6.371 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.3995, allocations: 81.11 kB / 354.4 MB, free: 6.273 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.4005, allocations: 0.8372 MB / 355.2 MB, free: 5.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.4006, allocations: 29.7 kB / 355.2 MB, free: 5.395 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003989/0.401, allocations: 0.5681 MB / 355.8 MB, free: 4.816 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.4011, allocations: 165.6 kB / 356 MB, free: 4.652 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.4013, allocations: 142.5 kB / 356.1 MB, free: 4.504 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4014, allocations: 334 kB / 356.4 MB, free: 4.172 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003344/0.4018, allocations: 173.9 kB / 356.6 MB, free: 4.004 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005239/0.4023, allocations: 463.6 kB / 357 MB, free: 3.414 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009332/0.4033, allocations: 0.6836 MB / 357.7 MB, free: 2.598 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.329e-05/0.4033, allocations: 4 kB / 357.7 MB, free: 2.594 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001287/0.4046, allocations: 0.7865 MB / 358.5 MB, free: 1.793 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.4046, allocations: 8 kB / 358.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.4046, allocations: 12 kB / 358.5 MB, free: 1.773 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002542/0.4049, allocations: 89.92 kB / 358.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004827/0.4054, allocations: 159.7 kB / 358.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002409/0.4078, allocations: 3.145 MB / 361.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005126/0.4083, allocations: 35.89 kB / 362 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.4084, allocations: 36 kB / 362 MB, free: 14.03 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.0003653/0.4088, allocations: 261.7 kB / 362.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.4089, allocations: 94.91 kB / 362.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009565/0.4098, allocations: 0.4951 MB / 362.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.4099, allocations: 8.031 kB / 362.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4099, allocations: 7.984 kB / 362.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4099, allocations: 3.984 kB / 362.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002132/0.412, allocations: 1.477 MB / 364.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.247e-06/0.412, allocations: 0 / 364.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/0.4124, allocations: 76.12 kB / 364.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001981/0.4126, allocations: 69.67 kB / 364.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.4126, allocations: 12 kB / 364.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002423/0.415, allocations: 3.13 MB / 367.6 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4151, allocations: 0 / 367.6 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.4164, allocations: 0.7971 MB / 368.4 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002932/0.4167, allocations: 200.1 kB / 368.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.823e-05/0.4168, allocations: 15.92 kB / 368.6 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000416/0.4173, allocations: 27.98 kB / 368.7 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.166e-05/0.4173, allocations: 35.95 kB / 368.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.4174, allocations: 12 kB / 368.7 MB, free: 6.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007451/0.4181, allocations: 0.5732 MB / 369.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4181, allocations: 0 / 369.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009086/0.419, allocations: 212 kB / 369.5 MB, free: 6.086 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.0003312/0.4194, allocations: 135.1 kB / 369.6 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.4208, allocations: 0.7212 MB / 370.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4208, allocations: 0 / 370.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006616/0.4215, allocations: 449.6 kB / 370.8 MB, free: 4.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.4226, allocations: 231 kB / 371 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003216/0.4259, allocations: 1.75 MB / 372.8 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008136/0.4267, allocations: 1.013 MB / 373.8 MB, free: 1.664 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004489/0.4272, allocations: 107.3 kB / 373.9 MB, free: 1.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.4273, allocations: 59.44 kB / 373.9 MB, free: 1.496 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4273, allocations: 0 / 373.9 MB, free: 1.496 MB / 302.1 MB Notification: Performance of Templates: time 0.02078/0.4481, allocations: 10.69 MB / 384.6 MB, free: 6.789 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)