Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001476/0.001476, allocations: 173.1 kB / 16.76 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.305/2.305, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007783/0.0007782, allocations: 89.02 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.175/0.175, allocations: 38.08 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004774/0.0004775, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2748, allocations: 56.32 MB / 480.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1214/0.3963, allocations: 97.73 MB / 0.5644 GB, free: 4.637 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.3966, allocations: 99.94 kB / 0.5645 GB, free: 4.539 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02739/0.424, allocations: 9.937 MB / 0.5742 GB, free: 10.49 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4241, allocations: 4 kB / 0.5743 GB, free: 10.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.798e-05/0.4241, allocations: 12 kB / 0.5743 GB, free: 10.48 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001078/0.4252, allocations: 0.6142 MB / 0.5749 GB, free: 9.812 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.4253, allocations: 12.03 kB / 0.5749 GB, free: 9.801 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.599e-05/0.4254, allocations: 44.47 kB / 0.5749 GB, free: 9.758 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008812/0.4262, allocations: 467.4 kB / 0.5754 GB, free: 9.258 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.945e-05/0.4263, allocations: 20.94 kB / 0.5754 GB, free: 9.238 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.4264, allocations: 32.28 kB / 0.5754 GB, free: 9.207 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005075/0.4269, allocations: 343.6 kB / 0.5757 GB, free: 8.832 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.4269, allocations: 192 / 0.5757 GB, free: 8.832 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.273e-05/0.427, allocations: 15.94 kB / 0.5758 GB, free: 8.816 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.427, allocations: 8 kB / 0.5758 GB, free: 8.809 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003315/0.4273, allocations: 201.5 kB / 0.576 GB, free: 8.613 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.429, allocations: 1.49 MB / 0.5774 GB, free: 7.027 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004184/0.4295, allocations: 194.4 kB / 0.5776 GB, free: 6.801 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.4296, allocations: 78.3 kB / 0.5777 GB, free: 6.715 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.4296, allocations: 7.938 kB / 0.5777 GB, free: 6.707 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.4297, allocations: 34.56 kB / 0.5777 GB, free: 6.664 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 2.635e-06/0.4297, allocations: 0 / 0.5777 GB, free: 6.664 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.001162/0.4309, allocations: 0.6781 MB / 0.5784 GB, free: 5.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.056e-05/0.431, allocations: 136.5 kB / 0.5785 GB, free: 5.766 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.4313, allocations: 314.1 kB / 0.5788 GB, free: 5.449 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.4313, allocations: 29.7 kB / 0.5788 GB, free: 5.414 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.4315, allocations: 223.7 kB / 0.579 GB, free: 5.191 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.85e-05/0.4315, allocations: 59.11 kB / 0.5791 GB, free: 5.133 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.098e-05/0.4316, allocations: 4 kB / 0.5791 GB, free: 5.129 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4317, allocations: 354.7 kB / 0.5794 GB, free: 4.773 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.179e-05/0.4318, allocations: 47.97 kB / 0.5795 GB, free: 4.727 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.432, allocations: 146.7 kB / 0.5796 GB, free: 4.539 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/0.4322, allocations: 224.6 kB / 0.5798 GB, free: 4.273 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4323, allocations: 3.938 kB / 0.5798 GB, free: 4.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003713/0.4326, allocations: 260.7 kB / 0.5801 GB, free: 4.012 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.4327, allocations: 8 kB / 0.5801 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4327, allocations: 7.984 kB / 0.5801 GB, free: 3.996 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.4327, allocations: 4 kB / 0.5801 GB, free: 3.992 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003509/0.4331, allocations: 75.91 kB / 0.5802 GB, free: 3.918 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008863/0.434, allocations: 1.29 MB / 0.5814 GB, free: 2.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.4341, allocations: 11.91 kB / 0.5815 GB, free: 2.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.4342, allocations: 16 kB / 0.5815 GB, free: 2.473 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001989/0.4344, allocations: 161.9 kB / 0.5816 GB, free: 2.305 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.074e-05/0.4344, allocations: 35.62 kB / 0.5817 GB, free: 2.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003194/0.4348, allocations: 188.4 kB / 0.5818 GB, free: 2.082 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.4348, allocations: 4 kB / 0.5818 GB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4348, allocations: 3.938 kB / 0.5819 GB, free: 2.074 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.4348, allocations: 4 kB / 0.5819 GB, free: 2.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007911/0.4356, allocations: 0.5335 MB / 0.5824 GB, free: 1.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4356, allocations: 4 kB / 0.5824 GB, free: 1.477 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002186/0.4358, allocations: 44.02 kB / 0.5824 GB, free: 1.434 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.4359, allocations: 3.938 kB / 0.5824 GB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.4359, allocations: 4 kB / 0.5824 GB, free: 1.426 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.4359, allocations: 3.938 kB / 0.5824 GB, free: 1.422 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.4359, allocations: 4 kB / 0.5824 GB, free: 1.418 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004647/0.4364, allocations: 494.9 kB / 0.5829 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.637e-05/0.4365, allocations: 108.7 kB / 0.583 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.4365, allocations: 7.984 kB / 0.583 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.4367, allocations: 4 kB / 0.583 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.269e-05/0.4367, allocations: 15.92 kB / 0.583 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.4368, allocations: 8 kB / 0.583 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002045/0.437, allocations: 215.2 kB / 0.5833 GB, free: 0.543 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.437, allocations: 0 / 0.5833 GB, free: 0.543 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004408/0.4374, allocations: 75.92 kB / 0.5833 GB, free: 480 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002256/0.4377, allocations: 131.2 kB / 0.5834 GB, free: 340 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003946/0.4381, allocations: 160.4 kB / 0.5836 GB, free: 180 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.217e-06/0.4381, allocations: 4.125 kB / 0.5836 GB, free: 176 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.4382, allocations: 71.84 kB / 0.5837 GB, free: 104 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000764/0.439, allocations: 92.91 kB / 0.5838 GB, free: 16 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.4406, allocations: 1.047 MB / 0.5848 GB, free: 14.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.4411, allocations: 0.7993 MB / 0.5856 GB, free: 14.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.268e-05/0.4412, allocations: 31.42 kB / 0.5856 GB, free: 14.07 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/0.4412, allocations: 4 kB / 0.5856 GB, free: 14.06 MB / 426.7 MB Notification: Performance of Templates: time 0.007503/0.4487, allocations: 4.885 MB / 0.5904 GB, free: 9.176 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)