Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001468/0.001468, allocations: 113.2 kB / 17.06 MB, free: 5.977 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.001788/0.001788, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.325/1.325, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1753/0.1753, allocations: 37.98 MB / 309.2 MB, free: 5.949 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.001415/0.001415, allocations: 64.47 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09166/0.09308, allocations: 55.25 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006725/0.09984, allocations: 5.255 MB / 491.9 MB, free: 3.559 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00249/0.1024, allocations: 1.613 MB / 493.5 MB, free: 1.938 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003827/0.1028, allocations: 15.94 kB / 493.5 MB, free: 1.922 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004453/0.1033, allocations: 127 kB / 493.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008497/0.1041, allocations: 314.1 kB / 493.9 MB, free: 1.488 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004385/0.1046, allocations: 159.7 kB / 494.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009958/0.1056, allocations: 0.7004 MB / 494.8 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006534/0.1062, allocations: 443.7 kB / 495.2 MB, free: 196 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006317/0.1069, allocations: 298.9 kB / 495.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006101/0.1075, allocations: 286.9 kB / 495.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.1076, allocations: 44 kB / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.1078, allocations: 48 kB / 495.9 MB, free: 15.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.108, allocations: 155.5 kB / 496 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004019/0.1084, allocations: 266.8 kB / 496.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007562/0.1092, allocations: 0.5879 MB / 496.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1092, allocations: 0 / 496.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1092, allocations: 4 kB / 496.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.773e-05/0.1092, allocations: 0 / 496.9 MB, free: 14.52 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001568/0.1108, allocations: 0.7814 MB / 497.7 MB, free: 13.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.1108, allocations: 11.89 kB / 497.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.1109, allocations: 90.7 kB / 497.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.111, allocations: 56.28 kB / 497.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007447/0.1118, allocations: 459.7 kB / 498.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.22e-05/0.1119, allocations: 58.7 kB / 498.3 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.698e-05/0.112, allocations: 44 kB / 498.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008516/0.1128, allocations: 0.5009 MB / 498.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.832e-05/0.1129, allocations: 3.906 kB / 498.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.509e-05/0.1129, allocations: 20 kB / 498.9 MB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.113, allocations: 12 kB / 498.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006708/0.1136, allocations: 347.6 kB / 499.2 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.1162, allocations: 1.964 MB / 0.4895 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004303/0.1166, allocations: 228.1 kB / 0.4897 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.1168, allocations: 98.53 kB / 0.4898 GB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.1169, allocations: 8 kB / 0.4898 GB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.1169, allocations: 34.56 kB / 0.4898 GB, free: 9.535 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.1169, allocations: 0 / 0.4898 GB, free: 9.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.001661/0.1186, allocations: 0.839 MB / 0.4906 GB, free: 8.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.1187, allocations: 114.7 kB / 0.4907 GB, free: 8.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/0.119, allocations: 333.5 kB / 0.4911 GB, free: 8.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.1191, allocations: 29.7 kB / 0.4911 GB, free: 8.125 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.1193, allocations: 263.7 kB / 0.4913 GB, free: 7.863 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.012e-05/0.1193, allocations: 82.84 kB / 0.4914 GB, free: 7.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.1195, allocations: 77.59 kB / 0.4915 GB, free: 7.699 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1196, allocations: 346.8 kB / 0.4918 GB, free: 7.352 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002166/0.1198, allocations: 79.95 kB / 0.4919 GB, free: 7.273 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002899/0.1201, allocations: 228.6 kB / 0.4921 GB, free: 6.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.1213, allocations: 0.5486 MB / 0.4926 GB, free: 6.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.1214, allocations: 8 kB / 0.4927 GB, free: 6.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008549/0.1222, allocations: 413.8 kB / 0.493 GB, free: 5.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.1223, allocations: 4 kB / 0.4931 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.1223, allocations: 8 kB / 0.4931 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003283/0.1226, allocations: 72.73 kB / 0.4931 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002412/0.1229, allocations: 71.89 kB / 0.4932 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.1247, allocations: 1.932 MB / 0.4951 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.1249, allocations: 23.89 kB / 0.4951 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.1249, allocations: 16 kB / 0.4951 GB, free: 3.672 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002356/0.1252, allocations: 185.8 kB / 0.4953 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.068e-05/0.1253, allocations: 35.62 kB / 0.4953 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.815e-05/0.1253, allocations: 47.31 kB / 0.4954 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1254, allocations: 0 / 0.4954 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.1254, allocations: 4 kB / 0.4954 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1254, allocations: 3.984 kB / 0.4954 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.1266, allocations: 0.7686 MB / 0.4961 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1266, allocations: 8.031 kB / 0.4961 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.1269, allocations: 43.97 kB / 0.4962 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.469e-05/0.1269, allocations: 24.84 kB / 0.4962 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.127, allocations: 3.938 kB / 0.4962 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008576/0.1278, allocations: 1.386 MB / 0.4976 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.1278, allocations: 4.062 kB / 0.4976 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006879/0.1285, allocations: 0.5086 MB / 0.4981 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.1287, allocations: 116.8 kB / 0.4982 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.1287, allocations: 8 kB / 0.4982 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.1289, allocations: 15.98 kB / 0.4982 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.105e-05/0.129, allocations: 19.92 kB / 0.4982 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.129, allocations: 4 kB / 0.4982 GB, free: 232 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002077/0.1292, allocations: 231.2 kB / 0.4984 GB, free: 4 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1292, allocations: 0 / 0.4984 GB, free: 4 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005019/0.1297, allocations: 91.98 kB / 0.4985 GB, free: 15.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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,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.000969/0.1307, allocations: 1.038 MB / 0.4995 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006923/0.1314, allocations: 378.2 kB / 0.4999 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1314, allocations: 1.188 kB / 0.4999 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.1318, allocations: 218.7 kB / 0.5001 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006764/0.1325, allocations: 105.9 kB / 0.5002 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004817/0.1373, allocations: 3.668 MB / 0.5038 GB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.1377, allocations: 0.8503 MB / 0.5046 GB, free: 9.363 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.1379, allocations: 47.25 kB / 0.5047 GB, free: 9.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.1381, allocations: 143.4 kB / 0.5048 GB, free: 9.18 MB / 398.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1381, allocations: 4 kB / 0.5048 GB, free: 9.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04259/0.1807, allocations: 8.629 MB / 0.5132 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/11.95, allocations: 15.88 kB / 0.5133 GB, free: 488 kB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)