Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.001155/0.001155, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001264/0.001264, allocations: 196 kB / 18 MB, free: 5.105 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.407/1.407, allocations: 205.1 MB / 223.9 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.1904/0.1904, 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.001462/0.001462, allocations: 67.91 kB / 431.4 MB, free: 16.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1065, allocations: 55.24 MB / 486.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007789/0.1143, allocations: 5.687 MB / 492.3 MB, free: 3.145 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00341/0.1178, allocations: 2.088 MB / 494.4 MB, free: 1.047 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004709/0.1183, allocations: 19.88 kB / 494.4 MB, free: 1.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007059/0.119, allocations: 174.8 kB / 494.6 MB, free: 0.8555 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.001287/0.1203, allocations: 406.2 kB / 495 MB, free: 468 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006502/0.121, allocations: 239.5 kB / 495.2 MB, free: 228 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.1223, allocations: 0.8408 MB / 496 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006618/0.1229, allocations: 0.489 MB / 496.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00064/0.1236, allocations: 362.6 kB / 496.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006193/0.1242, allocations: 334.6 kB / 497.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.1243, allocations: 56 kB / 497.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002646/0.1246, allocations: 99.97 kB / 497.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.1248, allocations: 183.5 kB / 497.5 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003483/0.1252, allocations: 306.5 kB / 497.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008321/0.126, allocations: 0.7398 MB / 498.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.126, allocations: 0 / 498.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.126, allocations: 0 / 498.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.1261, allocations: 3.984 kB / 498.6 MB, free: 12.82 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001894/0.128, allocations: 0.8863 MB / 499.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.128, allocations: 11.89 kB / 499.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.1282, allocations: 86.72 kB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.1283, allocations: 64.19 kB / 499.6 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009355/0.1292, allocations: 0.5252 MB / 0.4884 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.1293, allocations: 29 kB / 0.4885 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.1294, allocations: 51.89 kB / 0.4885 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007988/0.1302, allocations: 0.5173 MB / 0.489 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.1303, allocations: 3.938 kB / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.748e-05/0.1303, allocations: 20 kB / 0.489 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-05/0.1304, allocations: 20.98 kB / 0.4891 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005444/0.1309, allocations: 335.7 kB / 0.4894 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002741/0.1337, allocations: 2.054 MB / 0.4914 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004569/0.1342, allocations: 231.6 kB / 0.4916 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.1343, allocations: 82.67 kB / 0.4917 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.1344, allocations: 16.16 kB / 0.4917 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.1347, allocations: 173.6 kB / 0.4919 GB, free: 7.426 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.375e-06/0.1347, allocations: 0 / 0.4919 GB, free: 7.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.00206/0.1368, allocations: 0.9173 MB / 0.4928 GB, free: 6.449 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.1369, allocations: 140.3 kB / 0.4929 GB, free: 6.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.1374, allocations: 425.8 kB / 0.4933 GB, free: 5.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.282e-05/0.1375, allocations: 33.7 kB / 0.4933 GB, free: 5.816 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.1377, allocations: 295.6 kB / 0.4936 GB, free: 5.523 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.59e-05/0.1378, allocations: 90.8 kB / 0.4937 GB, free: 5.434 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.138, allocations: 70.05 kB / 0.4938 GB, free: 5.359 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1382, allocations: 362.7 kB / 0.4941 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.1383, allocations: 84.83 kB / 0.4942 GB, free: 4.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/0.1386, allocations: 221.5 kB / 0.4944 GB, free: 4.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004476/0.1391, allocations: 324 kB / 0.4947 GB, free: 4.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1391, allocations: 0 / 0.4947 GB, free: 4.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008867/0.14, allocations: 445.2 kB / 0.4951 GB, free: 3.816 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.14, allocations: 4 kB / 0.4951 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.14, allocations: 4.562 kB / 0.4951 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004648/0.1405, allocations: 96.77 kB / 0.4952 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.1408, allocations: 71.91 kB / 0.4953 GB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002492/0.1433, allocations: 1.836 MB / 0.4971 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/0.1436, allocations: 19.98 kB / 0.4971 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.924e-05/0.1437, allocations: 20 kB / 0.4971 GB, free: 1.621 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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.0003463/0.144, allocations: 201.7 kB / 0.4973 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.1442, allocations: 47.38 kB / 0.4974 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001284/0.1443, allocations: 55.86 kB / 0.4974 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1443, allocations: 4 kB / 0.4974 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1443, allocations: 4 kB / 0.4974 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1443, allocations: 0 / 0.4974 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.1459, allocations: 0.7683 MB / 0.4982 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.1459, allocations: 4 kB / 0.4982 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002732/0.1462, allocations: 43.91 kB / 0.4982 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002429/0.1464, allocations: 52.81 kB / 0.4983 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/0.1465, allocations: 15.92 kB / 0.4983 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.1481, allocations: 1.555 MB / 0.4998 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1481, allocations: 0 / 0.4998 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007744/0.1489, allocations: 477.2 kB / 0.5003 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.1491, allocations: 136.6 kB / 0.5004 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.476e-05/0.1492, allocations: 4 kB / 0.5004 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.1494, allocations: 11.98 kB / 0.5004 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.411e-05/0.1495, allocations: 27.91 kB / 0.5004 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.1495, allocations: 8 kB / 0.5005 GB, free: 13.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004014/0.1499, allocations: 295.1 kB / 0.5007 GB, free: 13.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.15, allocations: 0 / 0.5007 GB, free: 13.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000532/0.1505, allocations: 120 kB / 0.5008 GB, free: 13.56 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.001853/0.1524, allocations: 1.294 MB / 0.5021 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007891/0.1532, allocations: 390.3 kB / 0.5025 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1532, allocations: 1.125 kB / 0.5025 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003841/0.1536, allocations: 242.6 kB / 0.5027 GB, free: 11.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007133/0.1543, allocations: 145.7 kB / 0.5029 GB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00581/0.1601, allocations: 4.225 MB / 0.507 GB, free: 7.012 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/0.1606, allocations: 0.8777 MB / 0.5078 GB, free: 6.109 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002284/0.1608, allocations: 64.23 kB / 0.5079 GB, free: 6.047 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000221/0.1611, allocations: 171.4 kB / 0.5081 GB, free: 5.879 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1611, allocations: 4 kB / 0.5081 GB, free: 5.875 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04018/0.2013, allocations: 11.67 MB / 0.5195 GB, free: 10.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.11, allocations: 16.05 kB / 0.5195 GB, free: 10.09 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)