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.002289/0.002294, allocations: 185.7 kB / 8.01 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 92.05 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2521/0.2521, allocations: 37.99 MB / 347.7 MB, free: 5.785 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.874e-05/1.885e-05, allocations: 3.984 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1125, allocations: 56.32 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4868/0.5994, allocations: 99.52 MB / 0.5525 GB, free: 9.289 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.5997, allocations: 90.14 kB / 0.5526 GB, free: 9.277 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04973/0.6495, allocations: 12.9 MB / 0.5652 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6495, allocations: 0 / 0.5652 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.796e-05/0.6496, allocations: 16 kB / 0.5652 GB, free: 0.7852 MB / 362.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.001486/0.6511, allocations: 0.6764 MB / 0.5659 GB, free: 88 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.6512, allocations: 12.03 kB / 0.5659 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.6514, allocations: 59.3 kB / 0.566 GB, free: 16 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002548/0.6539, allocations: 0.6641 MB / 0.5666 GB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.6541, allocations: 47.02 kB / 0.5666 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.6543, allocations: 28 kB / 0.5667 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008263/0.6551, allocations: 276.8 kB / 0.5669 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009886/0.6561, allocations: 439.6 kB / 0.5674 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/0.6562, allocations: 3.938 kB / 0.5674 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.6562, allocations: 0 / 0.5674 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.6563, allocations: 12 kB / 0.5674 GB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003848/0.6601, allocations: 1.911 MB / 0.5692 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004537/0.6606, allocations: 187 kB / 0.5694 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/0.6609, allocations: 93.38 kB / 0.5695 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.6609, allocations: 7.984 kB / 0.5695 GB, free: 12.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.661, allocations: 38.47 kB / 0.5695 GB, free: 12.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 3.447e-06/0.661, allocations: 0 / 0.5695 GB, free: 12.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001874/0.6629, allocations: 0.6976 MB / 0.5702 GB, free: 12.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.663, allocations: 109.8 kB / 0.5703 GB, free: 11.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004063/0.6634, allocations: 248.5 kB / 0.5706 GB, free: 11.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.6635, allocations: 25.77 kB / 0.5706 GB, free: 11.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/0.6637, allocations: 333.9 kB / 0.5709 GB, free: 11.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.133e-05/0.6638, allocations: 70.28 kB / 0.571 GB, free: 11.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.674e-05/0.6639, allocations: 0 / 0.571 GB, free: 11.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.664, allocations: 329.7 kB / 0.5713 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.6642, allocations: 65.11 kB / 0.5714 GB, free: 11.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002896/0.6645, allocations: 194.7 kB / 0.5715 GB, free: 10.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.6656, allocations: 268.5 kB / 0.5718 GB, free: 10.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.6656, allocations: 0 / 0.5718 GB, free: 10.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001123/0.6667, allocations: 332.6 kB / 0.5721 GB, free: 10.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.6668, allocations: 12 kB / 0.5721 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.6668, allocations: 4 kB / 0.5721 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005043/0.6673, allocations: 82.86 kB / 0.5722 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004634/0.6678, allocations: 63.91 kB / 0.5723 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.6706, allocations: 1.716 MB / 0.5739 GB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004304/0.6711, allocations: 15.94 kB / 0.574 GB, free: 8.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/0.6711, allocations: 19.8 kB / 0.574 GB, free: 8.469 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001735/0.6713, allocations: 120.8 kB / 0.5741 GB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005992/0.6719, allocations: 208 kB / 0.5743 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.131e-05/0.672, allocations: 30.94 kB / 0.5743 GB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.6721, allocations: 33.95 kB / 0.5744 GB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.6722, allocations: 3.953 kB / 0.5744 GB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/0.6722, allocations: 4 kB / 0.5744 GB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.6722, allocations: 7.922 kB / 0.5744 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.6737, allocations: 0.6795 MB / 0.575 GB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.6738, allocations: 7.953 kB / 0.575 GB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005096/0.6743, allocations: 43.97 kB / 0.5751 GB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.6745, allocations: 18.73 kB / 0.5751 GB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.363e-05/0.6745, allocations: 7.984 kB / 0.5751 GB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.6757, allocations: 1.232 MB / 0.5763 GB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.6758, allocations: 0 / 0.5763 GB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008924/0.6767, allocations: 493.1 kB / 0.5768 GB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000198/0.6769, allocations: 122.3 kB / 0.5769 GB, free: 5.535 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.461e-05/0.677, allocations: 0 / 0.5769 GB, free: 5.535 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003596/0.6774, allocations: 23.94 kB / 0.5769 GB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.453e-05/0.6775, allocations: 15.05 kB / 0.5769 GB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.6775, allocations: 7.984 kB / 0.5769 GB, free: 5.492 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002919/0.6778, allocations: 186.7 kB / 0.5771 GB, free: 5.344 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6778, allocations: 0 / 0.5771 GB, free: 5.344 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008825/0.6787, allocations: 80 kB / 0.5772 GB, free: 5.266 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.rotor.phi,dcm_pm.motor.i,loadInertia.w) * Number of discrete variables: 1 (system.initime) * Number of discrete 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.001459/0.6802, allocations: 1.265 MB / 0.5784 GB, free: 4.031 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009775/0.6812, allocations: 332.5 kB / 0.5788 GB, free: 3.758 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.6812, allocations: 0 / 0.5788 GB, free: 3.758 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003843/0.6816, allocations: 182.8 kB / 0.5789 GB, free: 3.594 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008855/0.6825, allocations: 89.58 kB / 0.579 GB, free: 3.527 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002607/0.6852, allocations: 0.789 MB / 0.5798 GB, free: 2.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006149/0.6858, allocations: 0.8527 MB / 0.5806 GB, free: 1.883 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002885/0.6861, allocations: 144.7 kB / 0.5808 GB, free: 1.84 MB / 378.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6862, allocations: 0 / 0.5808 GB, free: 1.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.025/3.711, allocations: 8.536 MB / 0.5891 GB, free: 9.406 MB / 394.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)