Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001493/0.001498, allocations: 181.6 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.931/1.931, allocations: 205.4 MB / 221.9 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 90.7 kB / 270.2 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2521/0.2521, allocations: 38.07 MB / 356.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004638/0.0004641, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1061, allocations: 56.33 MB / 479 MB, free: 2.031 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4965/0.6027, allocations: 100.3 MB / 0.5657 GB, free: 15.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004187/0.6032, allocations: 99.5 kB / 0.5658 GB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07072/0.6739, allocations: 13.03 MB / 0.5786 GB, free: 4.246 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.674, allocations: 0 / 0.5786 GB, free: 4.246 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.533e-05/0.6741, allocations: 16 kB / 0.5786 GB, free: 4.23 MB / 378.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.002292/0.6764, allocations: 0.7194 MB / 0.5793 GB, free: 3.492 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.6764, allocations: 8.031 kB / 0.5793 GB, free: 3.484 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.6767, allocations: 63.3 kB / 0.5794 GB, free: 3.422 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002844/0.6795, allocations: 0.6824 MB / 0.58 GB, free: 2.812 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.6797, allocations: 66.56 kB / 0.5801 GB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.6799, allocations: 43.5 kB / 0.5801 GB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.6816, allocations: 0.4988 MB / 0.5806 GB, free: 2.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.517e-05/0.6816, allocations: 7.312 kB / 0.5806 GB, free: 2.316 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-05/0.6817, allocations: 14.5 kB / 0.5806 GB, free: 2.312 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.6818, allocations: 15.94 kB / 0.5806 GB, free: 2.297 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.683, allocations: 340.5 kB / 0.581 GB, free: 2.066 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003584/0.6866, allocations: 1.996 MB / 0.5829 GB, free: 260 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007278/0.6873, allocations: 226.3 kB / 0.5831 GB, free: 60 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.6874, allocations: 8.062 kB / 0.5831 GB, free: 52 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.6874, allocations: 38.05 kB / 0.5832 GB, free: 8 kB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 2.975e-06/0.6874, allocations: 0 / 0.5832 GB, free: 8 kB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.002698/0.6902, allocations: 0.8621 MB / 0.584 GB, free: 15.21 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.6903, allocations: 111 kB / 0.5841 GB, free: 15.08 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004614/0.6907, allocations: 290.5 kB / 0.5844 GB, free: 14.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.6908, allocations: 29.52 kB / 0.5844 GB, free: 14.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002286/0.691, allocations: 320 kB / 0.5847 GB, free: 14.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.136e-05/0.6911, allocations: 84.22 kB / 0.5848 GB, free: 14.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-05/0.6911, allocations: 7.688 kB / 0.5848 GB, free: 14.46 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.6913, allocations: 329.7 kB / 0.5851 GB, free: 14.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/0.6917, allocations: 88.39 kB / 0.5852 GB, free: 14.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00047/0.6921, allocations: 219 kB / 0.5854 GB, free: 13.83 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.6935, allocations: 309.4 kB / 0.5857 GB, free: 13.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.6935, allocations: 8 kB / 0.5857 GB, free: 13.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001379/0.6949, allocations: 395.9 kB / 0.5861 GB, free: 13.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.6949, allocations: 8 kB / 0.5861 GB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.6949, allocations: 7.984 kB / 0.5861 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005155/0.6955, allocations: 90.48 kB / 0.5862 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004479/0.6959, allocations: 63.34 kB / 0.5863 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003021/0.699, allocations: 1.803 MB / 0.588 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004137/0.6994, allocations: 25.92 kB / 0.5881 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.362e-05/0.6995, allocations: 15.5 kB / 0.5881 GB, free: 11.34 MB / 394.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 (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.0003722/0.6998, allocations: 197.4 kB / 0.5883 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.6999, allocations: 31.62 kB / 0.5883 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.871e-05/0.7, allocations: 41.38 kB / 0.5883 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.7001, allocations: 4 kB / 0.5883 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.7001, allocations: 3.953 kB / 0.5883 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.7001, allocations: 7.922 kB / 0.5883 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.7019, allocations: 0.7765 MB / 0.5891 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.702, allocations: 4.031 kB / 0.5891 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004883/0.7025, allocations: 51.03 kB / 0.5892 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001304/0.7026, allocations: 24.66 kB / 0.5892 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.7026, allocations: 3.5 kB / 0.5892 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/0.7039, allocations: 1.285 MB / 0.5904 GB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.7039, allocations: 3.984 kB / 0.5904 GB, free: 8.965 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.7052, allocations: 0.5509 MB / 0.591 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.7054, allocations: 126.1 kB / 0.5911 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.382e-05/0.7055, allocations: 6.516 kB / 0.5911 GB, free: 8.316 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.7058, allocations: 14.98 kB / 0.5911 GB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.112e-05/0.7059, allocations: 15.3 kB / 0.5911 GB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.61e-05/0.7059, allocations: 7.25 kB / 0.5911 GB, free: 8.289 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003568/0.7063, allocations: 232.7 kB / 0.5914 GB, free: 8.105 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.676e-06/0.7063, allocations: 0 / 0.5914 GB, free: 8.105 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007559/0.7071, allocations: 94.81 kB / 0.5915 GB, free: 8.02 MB / 394.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 () * 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.0002263/0.7073, allocations: 125.6 kB / 0.5916 GB, free: 7.891 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.7086, allocations: 377.5 kB / 0.5919 GB, free: 7.574 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.7086, allocations: 0 / 0.5919 GB, free: 7.574 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005559/0.7092, allocations: 224.2 kB / 0.5922 GB, free: 7.371 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008789/0.7101, allocations: 104.6 kB / 0.5923 GB, free: 7.285 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.7127, allocations: 1.212 MB / 0.5934 GB, free: 6.098 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005944/0.7133, allocations: 0.8552 MB / 0.5943 GB, free: 5.227 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.7135, allocations: 27.44 kB / 0.5943 GB, free: 5.199 MB / 394.7 MB Notification: Performance of SimCode: time 8.72e-07/0.7135, allocations: 0 / 0.5943 GB, free: 5.199 MB / 394.7 MB Notification: Performance of Templates: time 0.01454/0.728, allocations: 6.81 MB / 0.6009 GB, free: 14.48 MB / 410.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)