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.001363/0.001363, allocations: 107.1 kB / 17.06 MB, free: 6.125 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.001434/0.001435, allocations: 199 kB / 18 MB, free: 5.199 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.383/1.383, 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.1796/0.1796, 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.001645/0.001645, allocations: 67.89 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09692/0.09858, allocations: 55.23 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.006433/0.1051, allocations: 5.164 MB / 491.8 MB, free: 3.652 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003001/0.1081, allocations: 1.956 MB / 493.7 MB, free: 1.688 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005781/0.1087, allocations: 11.94 kB / 493.7 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008304/0.1095, allocations: 146.9 kB / 493.9 MB, free: 1.531 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.001259/0.1109, allocations: 357.9 kB / 494.2 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000582/0.1115, allocations: 204.1 kB / 494.4 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009825/0.1125, allocations: 0.7005 MB / 495.1 MB, free: 284 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005621/0.113, allocations: 426.5 kB / 495.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005204/0.1136, allocations: 302.8 kB / 495.8 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004716/0.1141, allocations: 294.8 kB / 496.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.994e-05/0.1142, allocations: 48 kB / 496.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002323/0.1144, allocations: 87.98 kB / 496.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.1146, allocations: 155.5 kB / 496.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003245/0.1149, allocations: 266.6 kB / 496.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007603/0.1157, allocations: 0.6424 MB / 497.3 MB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1157, allocations: 7.922 kB / 497.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1157, allocations: 0 / 497.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.992e-05/0.1157, allocations: 0 / 497.3 MB, free: 14.07 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.00164/0.1174, allocations: 0.8429 MB / 498.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.1174, allocations: 11.89 kB / 498.2 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.822e-05/0.1175, allocations: 74.72 kB / 498.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.1177, allocations: 56.28 kB / 498.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007672/0.1184, allocations: 493.9 kB / 498.8 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.1185, allocations: 29 kB / 498.8 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.851e-05/0.1185, allocations: 36 kB / 498.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006469/0.1192, allocations: 461.1 kB / 499.3 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1192, allocations: 4 kB / 499.3 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.859e-05/0.1193, allocations: 16 kB / 499.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1193, allocations: 8 kB / 499.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004575/0.1198, allocations: 278.3 kB / 499.6 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.1219, allocations: 1.851 MB / 0.4897 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005094/0.1224, allocations: 247.7 kB / 0.4899 GB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.1226, allocations: 82.98 kB / 0.49 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.1226, allocations: 7.922 kB / 0.49 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/0.1229, allocations: 173.7 kB / 0.4902 GB, free: 9.141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.1229, allocations: 0 / 0.4902 GB, free: 9.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001775/0.1247, allocations: 0.9178 MB / 0.4911 GB, free: 8.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.1248, allocations: 140.6 kB / 0.4912 GB, free: 7.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004483/0.1252, allocations: 402 kB / 0.4916 GB, free: 7.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.922e-05/0.1253, allocations: 37.64 kB / 0.4916 GB, free: 7.551 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.1254, allocations: 267.8 kB / 0.4919 GB, free: 7.285 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.496e-05/0.1255, allocations: 86.66 kB / 0.492 GB, free: 7.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.1256, allocations: 69.69 kB / 0.492 GB, free: 7.125 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1258, allocations: 350.8 kB / 0.4924 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.1259, allocations: 79.95 kB / 0.4924 GB, free: 6.695 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/0.1262, allocations: 228.1 kB / 0.4927 GB, free: 6.414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003855/0.1266, allocations: 315.2 kB / 0.493 GB, free: 6.051 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1266, allocations: 0 / 0.493 GB, free: 6.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008567/0.1274, allocations: 433.3 kB / 0.4934 GB, free: 5.617 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.1275, allocations: 8 kB / 0.4934 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.1275, allocations: 4 kB / 0.4934 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004151/0.1279, allocations: 101.1 kB / 0.4935 GB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.1281, allocations: 71.91 kB / 0.4936 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.1305, allocations: 2.002 MB / 0.4955 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.1308, allocations: 27.92 kB / 0.4955 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.1308, allocations: 15.94 kB / 0.4955 GB, free: 3.25 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.0002405/0.1311, allocations: 193.7 kB / 0.4957 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.5e-05/0.1312, allocations: 39.53 kB / 0.4958 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006067/0.1318, allocations: 298 kB / 0.4961 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1318, allocations: 4 kB / 0.4961 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1318, allocations: 4 kB / 0.4961 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1318, allocations: 0 / 0.4961 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.1329, allocations: 0.7692 MB / 0.4968 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1329, allocations: 0 / 0.4968 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.1332, allocations: 51.91 kB / 0.4969 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002169/0.1334, allocations: 48.81 kB / 0.4969 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.1335, allocations: 12 kB / 0.4969 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.1348, allocations: 1.535 MB / 0.4984 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1348, allocations: 0 / 0.4984 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007779/0.1356, allocations: 0.4987 MB / 0.4989 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.1357, allocations: 132.6 kB / 0.499 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.431e-05/0.1358, allocations: 8 kB / 0.499 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.1361, allocations: 19.92 kB / 0.4991 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.211e-05/0.1361, allocations: 23.97 kB / 0.4991 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.1362, allocations: 7.938 kB / 0.4991 GB, free: 15.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003158/0.1365, allocations: 287.1 kB / 0.4994 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1365, allocations: 0 / 0.4994 GB, free: 15.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005423/0.137, allocations: 108 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.001798/0.1388, allocations: 1.325 MB / 0.5008 GB, free: 13.6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009227/0.1398, allocations: 403.1 kB / 0.5011 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1398, allocations: 0 / 0.5011 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003837/0.1402, allocations: 242.5 kB / 0.5014 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006998/0.1409, allocations: 135.5 kB / 0.5015 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005648/0.1466, allocations: 4.038 MB / 0.5055 GB, free: 8.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.147, allocations: 0.8504 MB / 0.5063 GB, free: 7.699 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002418/0.1473, allocations: 63.36 kB / 0.5063 GB, free: 7.633 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/0.1475, allocations: 159.4 kB / 0.5065 GB, free: 7.477 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1475, allocations: 3.938 kB / 0.5065 GB, free: 7.473 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03558/0.1831, allocations: 11.1 MB / 0.5173 GB, free: 12.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.09, allocations: 8.047 kB / 0.5173 GB, free: 12.27 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)