Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.001555/0.00156, allocations: 178.9 kB / 15.77 MB, free: 6.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.975/1.975, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 94.86 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2575/0.2575, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006043/0.0006043, allocations: 8 kB / 422.8 MB, free: 26.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1078, allocations: 56.32 MB / 479.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008467/0.1163, allocations: 5.176 MB / 484.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00409/0.1204, allocations: 1.759 MB / 486.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005659/0.121, allocations: 31.81 kB / 486.1 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004663/0.1215, allocations: 127.2 kB / 486.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.1226, allocations: 319 kB / 486.5 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006688/0.1233, allocations: 159.7 kB / 486.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008931/0.1242, allocations: 419.1 kB / 487.1 MB, free: 9.93 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006086/0.1249, allocations: 317.2 kB / 487.4 MB, free: 9.621 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004824/0.1254, allocations: 223.1 kB / 487.6 MB, free: 9.402 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.1258, allocations: 207.2 kB / 487.8 MB, free: 9.199 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.115e-05/0.1259, allocations: 24 kB / 487.8 MB, free: 9.176 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.126, allocations: 24 kB / 487.9 MB, free: 9.152 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001741/0.1262, allocations: 115.6 kB / 488 MB, free: 9.039 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.1264, allocations: 121.5 kB / 488.1 MB, free: 8.914 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006573/0.127, allocations: 458.7 kB / 488.6 MB, free: 8.465 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.1271, allocations: 0 / 488.6 MB, free: 8.465 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.35e-06/0.1271, allocations: 3.984 kB / 488.6 MB, free: 8.461 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1271, allocations: 0 / 488.6 MB, free: 8.461 MB / 330.7 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.001735/0.1288, allocations: 0.6995 MB / 489.3 MB, free: 7.715 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.1289, allocations: 15.98 kB / 489.3 MB, free: 7.699 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.1291, allocations: 82.52 kB / 489.4 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.1292, allocations: 59.39 kB / 489.4 MB, free: 7.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009697/0.1302, allocations: 430.8 kB / 489.8 MB, free: 7.082 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.1303, allocations: 58.7 kB / 489.9 MB, free: 7.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.1305, allocations: 47.91 kB / 489.9 MB, free: 6.973 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.1317, allocations: 0.5008 MB / 490.4 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.1318, allocations: 0 / 490.4 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.207e-05/0.1319, allocations: 16 kB / 490.5 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.368e-05/0.1319, allocations: 19.94 kB / 490.5 MB, free: 6.398 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.133, allocations: 351.7 kB / 490.8 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003515/0.1365, allocations: 1.976 MB / 492.8 MB, free: 3.961 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007292/0.1373, allocations: 235.6 kB / 493 MB, free: 3.703 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.1373, allocations: 3.984 kB / 493 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/0.1374, allocations: 38.62 kB / 493.1 MB, free: 3.652 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 2.505e-06/0.1374, allocations: 3.938 kB / 493.1 MB, free: 3.648 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.002556/0.14, allocations: 0.854 MB / 493.9 MB, free: 2.738 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.875e-05/0.1401, allocations: 114.8 kB / 494 MB, free: 2.602 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004851/0.1406, allocations: 329.6 kB / 494.4 MB, free: 2.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.1406, allocations: 29.7 kB / 494.4 MB, free: 2.234 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.1408, allocations: 314.1 kB / 494.7 MB, free: 1.926 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.699e-05/0.141, allocations: 90.89 kB / 494.8 MB, free: 1.836 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.141, allocations: 4 kB / 494.8 MB, free: 1.832 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1411, allocations: 322.8 kB / 495.1 MB, free: 1.508 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/0.1415, allocations: 83.95 kB / 495.2 MB, free: 1.426 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004559/0.142, allocations: 217 kB / 495.4 MB, free: 1.152 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.1433, allocations: 316.9 kB / 495.7 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.1433, allocations: 0 / 495.7 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001364/0.1447, allocations: 395.7 kB / 496.1 MB, free: 440 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1447, allocations: 8.062 kB / 496.1 MB, free: 432 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.1447, allocations: 8 kB / 496.1 MB, free: 424 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005063/0.1452, allocations: 80.73 kB / 496.2 MB, free: 340 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004409/0.1457, allocations: 67.91 kB / 496.2 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002696/0.1484, allocations: 1.764 MB / 498 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003484/0.1488, allocations: 19.98 kB / 498 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-05/0.1488, allocations: 19.98 kB / 498.1 MB, free: 14.32 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003182/0.1491, allocations: 193.7 kB / 498.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.953e-05/0.1493, allocations: 35.53 kB / 498.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.84e-05/0.1494, allocations: 43.25 kB / 498.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.1494, allocations: 11.94 kB / 498.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1494, allocations: 4.25 kB / 498.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1494, allocations: 0 / 498.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.1513, allocations: 0.7921 MB / 499.1 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-06/0.1513, allocations: 4 kB / 499.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004686/0.1518, allocations: 39.97 kB / 499.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001238/0.1519, allocations: 20.86 kB / 499.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.1519, allocations: 8 kB / 499.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/0.1531, allocations: 1.28 MB / 0.4887 GB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.1531, allocations: 4.031 kB / 0.4887 GB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.1544, allocations: 0.5489 MB / 0.4893 GB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.1546, allocations: 120.7 kB / 0.4894 GB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.229e-05/0.1547, allocations: 8 kB / 0.4894 GB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003291/0.155, allocations: 15.98 kB / 0.4894 GB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.143e-05/0.1551, allocations: 19.92 kB / 0.4894 GB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.1551, allocations: 11.98 kB / 0.4895 GB, free: 10.89 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003301/0.1555, allocations: 223.2 kB / 0.4897 GB, free: 10.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1555, allocations: 0 / 0.4897 GB, free: 10.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007072/0.1562, allocations: 84 kB / 0.4897 GB, free: 10.59 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001638/0.1579, allocations: 1.296 MB / 0.491 GB, free: 9.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.159, allocations: 375.3 kB / 0.4914 GB, free: 8.867 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1591, allocations: 0 / 0.4914 GB, free: 8.867 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005669/0.1596, allocations: 223.5 kB / 0.4916 GB, free: 8.637 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008141/0.1605, allocations: 98.11 kB / 0.4917 GB, free: 8.539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00706/0.1676, allocations: 5.385 MB / 0.4969 GB, free: 3.016 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.1682, allocations: 0.8467 MB / 0.4978 GB, free: 2.145 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002957/0.1685, allocations: 143.4 kB / 0.4979 GB, free: 2.004 MB / 346.7 MB Notification: Performance of SimCode: time 7.72e-07/0.1685, allocations: 4 kB / 0.4979 GB, free: 2 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.746/2.914, allocations: 8.739 MB / 0.5064 GB, free: 9.25 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)