Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001645/0.001645, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.507/1.507, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1778/0.1778, allocations: 37.99 MB / 309.8 MB, free: 5.973 MB / 254.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.001603/0.001603, allocations: 63.91 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3835/0.3851, allocations: 55.24 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006763/0.3919, allocations: 5.177 MB / 437.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.395, allocations: 1.94 MB / 439.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004117/0.3954, allocations: 19.88 kB / 439.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006325/0.396, allocations: 146.9 kB / 439.3 MB, free: 12.18 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001003/0.3971, allocations: 357.8 kB / 439.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004806/0.3976, allocations: 195.6 kB / 439.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007634/0.3984, allocations: 0.6928 MB / 440.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005409/0.3989, allocations: 426.6 kB / 440.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004996/0.3994, allocations: 294.8 kB / 441.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004527/0.3999, allocations: 290.8 kB / 441.5 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.501e-05/0.4, allocations: 48 kB / 441.6 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002551/0.4003, allocations: 91.97 kB / 441.7 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002055/0.4005, allocations: 151.6 kB / 441.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000303/0.4008, allocations: 278.6 kB / 442.1 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007056/0.4015, allocations: 0.6463 MB / 442.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.4015, allocations: 0 / 442.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.4015, allocations: 0 / 442.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.4016, allocations: 0 / 442.7 MB, free: 8.742 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001633/0.4032, allocations: 0.8484 MB / 443.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.4033, allocations: 11.89 kB / 443.6 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.4034, allocations: 56.28 kB / 443.6 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007383/0.4041, allocations: 482.2 kB / 444.1 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.4042, allocations: 29 kB / 444.1 MB, free: 7.242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-05/0.4042, allocations: 36 kB / 444.2 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005413/0.4048, allocations: 465 kB / 444.6 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.4048, allocations: 3.906 kB / 444.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.748e-05/0.4049, allocations: 16 kB / 444.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.4049, allocations: 19.98 kB / 444.7 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004099/0.4053, allocations: 274.3 kB / 444.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.407, allocations: 1.855 MB / 446.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004292/0.4075, allocations: 243.6 kB / 447 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.4076, allocations: 83.05 kB / 447.1 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.15e-05/0.4076, allocations: 11.94 kB / 447.1 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000232/0.4079, allocations: 173.7 kB / 447.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.392e-06/0.4079, allocations: 0 / 447.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001432/0.4093, allocations: 0.9099 MB / 448.2 MB, free: 2.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.4094, allocations: 132.5 kB / 448.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003501/0.4097, allocations: 409.8 kB / 448.7 MB, free: 2.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.4098, allocations: 29.7 kB / 448.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.4099, allocations: 263.7 kB / 449 MB, free: 2.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.227e-05/0.41, allocations: 94.83 kB / 449.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.773e-05/0.4101, allocations: 73.66 kB / 449.2 MB, free: 1.879 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.072e-05/0.4101, allocations: 354.8 kB / 449.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.4103, allocations: 83.95 kB / 449.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.4105, allocations: 212.2 kB / 449.8 MB, free: 1.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003162/0.4108, allocations: 315 kB / 450.1 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.4108, allocations: 4 kB / 450.1 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006506/0.4115, allocations: 417.4 kB / 450.5 MB, free: 400 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4115, allocations: 11.98 kB / 450.5 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.4115, allocations: 4.531 kB / 450.5 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003851/0.4119, allocations: 92.72 kB / 450.6 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.4121, allocations: 71.84 kB / 450.7 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002414/0.4145, allocations: 2.01 MB / 452.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.4148, allocations: 20 kB / 452.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.4148, allocations: 19.98 kB / 452.8 MB, free: 14.03 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.000266/0.4151, allocations: 193.7 kB / 452.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.746e-05/0.4152, allocations: 47.42 kB / 453 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006295/0.4158, allocations: 302.1 kB / 453.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.4159, allocations: 4 kB / 453.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.4159, allocations: 0 / 453.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4159, allocations: 0 / 453.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.417, allocations: 0.7688 MB / 454.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.417, allocations: 0 / 454.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.4173, allocations: 51.92 kB / 454.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002011/0.4175, allocations: 52.8 kB / 454.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.4175, allocations: 4 kB / 454.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.4188, allocations: 1.543 MB / 455.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4189, allocations: 3.938 kB / 455.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007171/0.4196, allocations: 0.4958 MB / 456.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.4197, allocations: 128.6 kB / 456.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.041e-05/0.4198, allocations: 11.98 kB / 456.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.42, allocations: 8 kB / 456.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.718e-05/0.4201, allocations: 27.97 kB / 456.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.4201, allocations: 7.984 kB / 456.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000326/0.4205, allocations: 287.1 kB / 456.7 MB, free: 9.836 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4205, allocations: 4 kB / 456.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005504/0.421, allocations: 104 kB / 456.8 MB, free: 9.73 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009652/0.422, allocations: 408.5 kB / 457.2 MB, free: 9.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000954/0.423, allocations: 407.5 kB / 457.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.423, allocations: 0 / 457.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004073/0.4234, allocations: 243.5 kB / 457.8 MB, free: 8.727 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006847/0.4241, allocations: 130.8 kB / 457.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.4261, allocations: 1.088 MB / 459 MB, free: 7.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.4267, allocations: 0.8543 MB / 459.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002298/0.4269, allocations: 67.3 kB / 459.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.327e-05/0.427, allocations: 35.44 kB / 460 MB, free: 6.496 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.427, allocations: 0 / 460 MB, free: 6.496 MB / 334.1 MB Notification: Performance of Templates: time 0.01381/0.4408, allocations: 6.189 MB / 466.2 MB, free: 308 kB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)