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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.001968/0.001968, allocations: 198.9 kB / 18 MB, free: 5.082 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.414/1.414, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.182/0.182, allocations: 37.98 MB / 309.2 MB, free: 5.953 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.001453/0.001453, allocations: 63.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1169, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007284/0.1242, allocations: 5.157 MB / 491.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003451/0.1277, allocations: 1.952 MB / 493.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004842/0.1282, allocations: 19.88 kB / 493.7 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007046/0.1289, allocations: 146.9 kB / 493.9 MB, free: 1.535 MB / 366.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.001088/0.1301, allocations: 357.9 kB / 494.2 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005619/0.1306, allocations: 204.1 kB / 494.4 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.1318, allocations: 0.7005 MB / 495.1 MB, free: 288 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006444/0.1324, allocations: 430.5 kB / 495.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007047/0.1331, allocations: 298.8 kB / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005184/0.1337, allocations: 286.9 kB / 496.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.806e-05/0.1338, allocations: 48 kB / 496.2 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002379/0.134, allocations: 91.92 kB / 496.3 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.1342, allocations: 151.5 kB / 496.4 MB, free: 15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003245/0.1345, allocations: 266.7 kB / 496.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008236/0.1354, allocations: 0.6501 MB / 497.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1354, allocations: 0 / 497.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1354, allocations: 4 kB / 497.3 MB, free: 14.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.163e-05/0.1354, allocations: 0 / 497.3 MB, free: 14.08 MB / 382.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.001756/0.1372, allocations: 0.839 MB / 498.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1372, allocations: 11.89 kB / 498.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.306e-05/0.1373, allocations: 74.72 kB / 498.2 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.1374, allocations: 60.22 kB / 498.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00079/0.1382, allocations: 493.9 kB / 498.8 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.1383, allocations: 33 kB / 498.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.765e-05/0.1384, allocations: 36 kB / 498.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006509/0.139, allocations: 457.1 kB / 499.3 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.139, allocations: 4 kB / 499.3 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.974e-05/0.1391, allocations: 19.92 kB / 499.3 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.1391, allocations: 8 kB / 499.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004457/0.1396, allocations: 278.3 kB / 499.6 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.1418, allocations: 1.847 MB / 0.4897 GB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005062/0.1423, allocations: 251.7 kB / 0.4899 GB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.1425, allocations: 86.92 kB / 0.49 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.1425, allocations: 3.938 kB / 0.49 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.1428, allocations: 177.7 kB / 0.4902 GB, free: 9.141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 2.375e-06/0.1428, allocations: 0 / 0.4902 GB, free: 9.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001745/0.1446, allocations: 0.9105 MB / 0.4911 GB, free: 8.172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.296e-05/0.1446, allocations: 140.4 kB / 0.4912 GB, free: 8.004 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004564/0.1451, allocations: 397.9 kB / 0.4916 GB, free: 7.605 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.1452, allocations: 33.7 kB / 0.4916 GB, free: 7.566 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.1453, allocations: 267.5 kB / 0.4919 GB, free: 7.301 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.451e-05/0.1454, allocations: 94.66 kB / 0.492 GB, free: 7.207 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.1455, allocations: 69.69 kB / 0.492 GB, free: 7.133 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1457, allocations: 350.8 kB / 0.4924 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.1458, allocations: 83.95 kB / 0.4924 GB, free: 6.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.1461, allocations: 224.1 kB / 0.4927 GB, free: 6.422 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004333/0.1465, allocations: 311.2 kB / 0.493 GB, free: 6.062 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1465, allocations: 0 / 0.493 GB, free: 6.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008888/0.1474, allocations: 441.3 kB / 0.4934 GB, free: 5.621 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.1475, allocations: 8 kB / 0.4934 GB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1475, allocations: 4 kB / 0.4934 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/0.148, allocations: 93.2 kB / 0.4935 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002437/0.1482, allocations: 63.91 kB / 0.4935 GB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00267/0.1509, allocations: 2.022 MB / 0.4955 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002646/0.1512, allocations: 19.98 kB / 0.4955 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.1512, allocations: 19.94 kB / 0.4956 GB, free: 3.254 MB / 382.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.0002303/0.1515, allocations: 193.7 kB / 0.4957 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.579e-05/0.1515, allocations: 47.59 kB / 0.4958 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005616/0.1521, allocations: 294 kB / 0.4961 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1521, allocations: 4 kB / 0.4961 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.1521, allocations: 0 / 0.4961 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.1521, allocations: 7.984 kB / 0.4961 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.1534, allocations: 0.7574 MB / 0.4968 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.1534, allocations: 8 kB / 0.4968 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/0.1536, allocations: 43.97 kB / 0.4969 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001994/0.1539, allocations: 48.81 kB / 0.4969 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.1539, allocations: 11.98 kB / 0.4969 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001325/0.1552, allocations: 1.528 MB / 0.4984 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.1552, allocations: 8.016 kB / 0.4984 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007723/0.156, allocations: 0.5025 MB / 0.4989 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.1562, allocations: 132.6 kB / 0.499 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.1562, allocations: 8 kB / 0.499 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.1565, allocations: 15.98 kB / 0.4991 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.531e-05/0.1566, allocations: 27.84 kB / 0.4991 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.1566, allocations: 15.94 kB / 0.4991 GB, free: 15.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003458/0.1569, allocations: 283.1 kB / 0.4994 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1569, allocations: 0 / 0.4994 GB, free: 15.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005268/0.1575, allocations: 104 kB / 0.4995 GB, free: 14.96 MB / 398.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.001823/0.1593, allocations: 1.321 MB / 0.5008 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008496/0.1602, allocations: 407 kB / 0.5012 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1602, allocations: 0 / 0.5012 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003821/0.1606, allocations: 238.6 kB / 0.5014 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007142/0.1613, allocations: 131.5 kB / 0.5015 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005721/0.167, allocations: 4.034 MB / 0.5054 GB, free: 8.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.1675, allocations: 0.8543 MB / 0.5063 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002521/0.1678, allocations: 67.34 kB / 0.5063 GB, free: 7.641 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.168, allocations: 159.4 kB / 0.5065 GB, free: 7.484 MB / 398.1 MB Notification: Performance of SimCode: time 7.42e-07/0.168, allocations: 0 / 0.5065 GB, free: 7.484 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03793/0.206, allocations: 11.11 MB / 0.5173 GB, free: 12.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.13, allocations: 8.047 kB / 0.5174 GB, free: 12.26 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)