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.001827/0.001827, allocations: 114.9 kB / 17.69 MB, free: 5.312 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.00186/0.00186, allocations: 192 kB / 18.63 MB, free: 4.379 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.421/1.421, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1715/0.1715, allocations: 37.98 MB / 309.8 MB, free: 5.984 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.001417/0.001417, allocations: 67.91 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2063/0.2077, allocations: 55.25 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006181/0.2139, allocations: 5.166 MB / 437.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.2165, allocations: 1.948 MB / 439.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004586/0.217, allocations: 15.94 kB / 439.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006555/0.2177, allocations: 146.9 kB / 439.3 MB, free: 12.21 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.001115/0.2189, allocations: 353.9 kB / 439.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005528/0.2194, allocations: 191.6 kB / 439.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00105/0.2205, allocations: 0.7006 MB / 440.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005419/0.221, allocations: 426.6 kB / 440.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004395/0.2215, allocations: 302.8 kB / 441.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004589/0.222, allocations: 282.9 kB / 441.5 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.18e-05/0.2221, allocations: 44 kB / 441.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002115/0.2223, allocations: 99.95 kB / 441.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.2224, allocations: 159.5 kB / 441.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002906/0.2227, allocations: 270.7 kB / 442.1 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000632/0.2234, allocations: 0.6424 MB / 442.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.2234, allocations: 0 / 442.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.2234, allocations: 0 / 442.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.377e-05/0.2234, allocations: 4 kB / 442.7 MB, free: 8.766 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.001699/0.2251, allocations: 0.8389 MB / 443.6 MB, free: 7.879 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.2252, allocations: 15.89 kB / 443.6 MB, free: 7.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.2253, allocations: 52.28 kB / 443.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008379/0.2262, allocations: 494.1 kB / 444.1 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.2262, allocations: 25 kB / 444.1 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.364e-05/0.2263, allocations: 44 kB / 444.2 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005711/0.2268, allocations: 453.1 kB / 444.6 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.2269, allocations: 11.89 kB / 444.6 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.2269, allocations: 16 kB / 444.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.2269, allocations: 8 kB / 444.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.2273, allocations: 274.3 kB / 444.9 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.2291, allocations: 1.859 MB / 446.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004288/0.2296, allocations: 247.7 kB / 447 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.2297, allocations: 90.92 kB / 447.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.316e-05/0.2298, allocations: 7.938 kB / 447.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002116/0.23, allocations: 165.7 kB / 447.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.23, allocations: 3.938 kB / 447.3 MB, free: 3.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001508/0.2315, allocations: 0.9061 MB / 448.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.2316, allocations: 140.4 kB / 448.3 MB, free: 2.777 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003923/0.232, allocations: 409.8 kB / 448.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.232, allocations: 29.7 kB / 448.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.2321, allocations: 259.7 kB / 449 MB, free: 2.074 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.2322, allocations: 94.95 kB / 449.1 MB, free: 1.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.577e-05/0.2323, allocations: 69.59 kB / 449.2 MB, free: 1.906 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.762e-05/0.2324, allocations: 354.8 kB / 449.5 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.2325, allocations: 79.95 kB / 449.6 MB, free: 1.473 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.2327, allocations: 216.2 kB / 449.8 MB, free: 1.203 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003153/0.233, allocations: 315 kB / 450.1 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.233, allocations: 0 / 450.1 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007296/0.2337, allocations: 429.3 kB / 450.5 MB, free: 420 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2338, allocations: 8.531 kB / 450.5 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2338, allocations: 8 kB / 450.6 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004016/0.2342, allocations: 88.77 kB / 450.6 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.2344, allocations: 67.91 kB / 450.7 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/0.2369, allocations: 2.016 MB / 452.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/0.2372, allocations: 23.98 kB / 452.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.2372, allocations: 12 kB / 452.8 MB, free: 14.05 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.0002288/0.2375, allocations: 201.7 kB / 453 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.578e-05/0.2375, allocations: 43.44 kB / 453 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006139/0.2382, allocations: 298.1 kB / 453.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2382, allocations: 4 kB / 453.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.2382, allocations: 4 kB / 453.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.2382, allocations: 3.984 kB / 453.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.2394, allocations: 0.7688 MB / 454.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.2394, allocations: 0 / 454.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.2396, allocations: 51.91 kB / 454.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002021/0.2398, allocations: 44.81 kB / 454.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.2399, allocations: 11.98 kB / 454.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.2412, allocations: 1.543 MB / 455.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2412, allocations: 4.062 kB / 455.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007725/0.242, allocations: 499.5 kB / 456.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.2422, allocations: 136.6 kB / 456.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.2422, allocations: 8 kB / 456.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.2425, allocations: 19.98 kB / 456.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.548e-05/0.2426, allocations: 23.97 kB / 456.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.2426, allocations: 4 kB / 456.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003395/0.2429, allocations: 287.1 kB / 456.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.243, allocations: 0 / 456.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005393/0.2435, allocations: 108 kB / 456.8 MB, free: 9.75 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.0009631/0.2445, allocations: 393.8 kB / 457.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008706/0.2454, allocations: 407.3 kB / 457.6 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.2454, allocations: 8.125 kB / 457.6 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004486/0.2458, allocations: 239.4 kB / 457.8 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007098/0.2466, allocations: 135.7 kB / 457.9 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.2485, allocations: 1.091 MB / 459 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005147/0.2491, allocations: 0.8543 MB / 459.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002355/0.2493, allocations: 63.36 kB / 460 MB, free: 6.555 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.886e-05/0.2494, allocations: 39.42 kB / 460 MB, free: 6.516 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2494, allocations: 0 / 460 MB, free: 6.516 MB / 334.1 MB Notification: Performance of Templates: time 0.01224/0.2617, allocations: 6.189 MB / 466.2 MB, free: 328 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)