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.001138/0.001139, allocations: 106.4 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.00131/0.00131, allocations: 195 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.431/1.431, 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.1848/0.1848, allocations: 37.99 MB / 309.2 MB, free: 5.965 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.001423/0.001423, allocations: 67.91 kB / 431.4 MB, free: 16.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1176, 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_pm): time 0.007081/0.1248, allocations: 5.254 MB / 491.9 MB, free: 3.578 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.127, allocations: 1.621 MB / 493.5 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002242/0.1273, allocations: 15.94 kB / 493.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003991/0.1277, allocations: 123 kB / 493.6 MB, free: 1.812 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006743/0.1284, allocations: 326 kB / 493.9 MB, free: 1.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.1287, allocations: 151.8 kB / 494.1 MB, free: 1.344 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007457/0.1295, allocations: 0.6967 MB / 494.8 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000615/0.1301, allocations: 443.7 kB / 495.2 MB, free: 212 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003664/0.1305, allocations: 294.9 kB / 495.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003959/0.1309, allocations: 290.9 kB / 495.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.545e-05/0.131, allocations: 44 kB / 495.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.052e-05/0.1311, allocations: 48 kB / 495.9 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.1312, allocations: 155.5 kB / 496 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002493/0.1315, allocations: 270.7 kB / 496.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000575/0.1321, allocations: 0.5879 MB / 496.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1321, allocations: 0 / 496.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1321, allocations: 4 kB / 496.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.1321, allocations: 0 / 496.9 MB, free: 14.53 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.001398/0.1335, allocations: 0.7776 MB / 497.7 MB, free: 13.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.1336, allocations: 11.89 kB / 497.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.1337, allocations: 90.7 kB / 497.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.1338, allocations: 56.28 kB / 497.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007606/0.1346, allocations: 463.7 kB / 498.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.659e-05/0.1346, allocations: 54.7 kB / 498.3 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.364e-05/0.1347, allocations: 51.98 kB / 498.4 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007798/0.1355, allocations: 0.497 MB / 498.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.1356, allocations: 3.906 kB / 498.9 MB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.986e-05/0.1356, allocations: 19.98 kB / 498.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.1356, allocations: 15.94 kB / 498.9 MB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006137/0.1362, allocations: 347.6 kB / 499.2 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.1386, allocations: 1.96 MB / 0.4895 GB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004648/0.1391, allocations: 228 kB / 0.4897 GB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.1393, allocations: 90.59 kB / 0.4898 GB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.1393, allocations: 8 kB / 0.4898 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.89e-05/0.1394, allocations: 38.56 kB / 0.4898 GB, free: 9.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.1394, allocations: 0 / 0.4898 GB, free: 9.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.001814/0.1412, allocations: 0.8506 MB / 0.4906 GB, free: 8.641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.1413, allocations: 106.8 kB / 0.4907 GB, free: 8.512 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.1416, allocations: 333.5 kB / 0.4911 GB, free: 8.172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.1417, allocations: 25.7 kB / 0.4911 GB, free: 8.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.1419, allocations: 271.7 kB / 0.4913 GB, free: 7.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.006e-05/0.142, allocations: 78.84 kB / 0.4914 GB, free: 7.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.826e-05/0.1421, allocations: 69.67 kB / 0.4915 GB, free: 7.719 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1422, allocations: 350.8 kB / 0.4918 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.1424, allocations: 79.95 kB / 0.4919 GB, free: 7.289 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.1427, allocations: 232.6 kB / 0.4921 GB, free: 7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.1438, allocations: 0.5447 MB / 0.4926 GB, free: 6.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1439, allocations: 8 kB / 0.4927 GB, free: 6.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000814/0.1447, allocations: 413.7 kB / 0.493 GB, free: 5.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1447, allocations: 4 kB / 0.4931 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1447, allocations: 8 kB / 0.4931 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003224/0.145, allocations: 76.78 kB / 0.4931 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.1453, allocations: 67.91 kB / 0.4932 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/0.1475, allocations: 1.928 MB / 0.4951 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.1477, allocations: 19.89 kB / 0.4951 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.1477, allocations: 20 kB / 0.4951 GB, free: 3.691 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.0002258/0.148, allocations: 185.8 kB / 0.4953 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.797e-05/0.1481, allocations: 39.61 kB / 0.4953 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.682e-05/0.1481, allocations: 47.3 kB / 0.4954 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1481, allocations: 0 / 0.4954 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.1481, allocations: 4 kB / 0.4954 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1482, allocations: 0 / 0.4954 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.1493, allocations: 0.7764 MB / 0.4961 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1493, allocations: 8.031 kB / 0.4961 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.1496, allocations: 39.97 kB / 0.4962 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.4e-05/0.1497, allocations: 20.86 kB / 0.4962 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.1497, allocations: 11.88 kB / 0.4962 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009427/0.1507, allocations: 1.382 MB / 0.4976 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1507, allocations: 4 kB / 0.4976 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007582/0.1514, allocations: 0.5048 MB / 0.4981 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.1516, allocations: 116.8 kB / 0.4982 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.533e-05/0.1516, allocations: 8 kB / 0.4982 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.1518, allocations: 11.98 kB / 0.4982 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.192e-05/0.1519, allocations: 23.91 kB / 0.4982 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.1519, allocations: 8 kB / 0.4982 GB, free: 248 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002262/0.1521, allocations: 227.2 kB / 0.4984 GB, free: 24 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1521, allocations: 0 / 0.4984 GB, free: 24 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005228/0.1527, allocations: 87.98 kB / 0.4985 GB, free: 15.93 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.001182/0.1539, allocations: 1.046 MB / 0.4995 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007626/0.1546, allocations: 370.2 kB / 0.4999 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1546, allocations: 1.188 kB / 0.4999 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003505/0.155, allocations: 226.6 kB / 0.5001 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006692/0.1557, allocations: 110.2 kB / 0.5002 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005103/0.1608, allocations: 3.667 MB / 0.5038 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.1613, allocations: 0.8503 MB / 0.5046 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.1615, allocations: 47.25 kB / 0.5047 GB, free: 9.328 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.1616, allocations: 143.3 kB / 0.5048 GB, free: 9.191 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.1617, allocations: 4 kB / 0.5048 GB, free: 9.188 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04085/0.2025, allocations: 8.625 MB / 0.5132 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.76, allocations: 15.88 kB / 0.5133 GB, free: 0.4922 MB / 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)