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.00221/0.002209, allocations: 188.1 kB / 13.2 MB, free: 2.117 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 2.391/2.391, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001095/0.001095, allocations: 90.84 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2682/0.2682, allocations: 37.97 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.326e-05/3.343e-05, allocations: 8 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 56.31 MB / 473.1 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5121/0.6153, allocations: 100.2 MB / 0.5599 GB, free: 3.555 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003361/0.6157, allocations: 87.95 kB / 0.56 GB, free: 3.469 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05831/0.674, allocations: 13.04 MB / 0.5727 GB, free: 6.289 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.6741, allocations: 0 / 0.5727 GB, free: 6.289 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.641e-05/0.6742, allocations: 16.38 kB / 0.5727 GB, free: 6.273 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001707/0.6759, allocations: 0.6799 MB / 0.5734 GB, free: 5.543 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.676, allocations: 8.031 kB / 0.5734 GB, free: 5.535 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002198/0.6762, allocations: 59.3 kB / 0.5734 GB, free: 5.477 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002404/0.6786, allocations: 0.6624 MB / 0.5741 GB, free: 4.773 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.6788, allocations: 66.69 kB / 0.5741 GB, free: 4.703 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.6789, allocations: 44 kB / 0.5742 GB, free: 4.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.6802, allocations: 491.8 kB / 0.5747 GB, free: 4.137 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.6802, allocations: 3.938 kB / 0.5747 GB, free: 4.133 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-05/0.6803, allocations: 24 kB / 0.5747 GB, free: 4.109 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.6803, allocations: 8 kB / 0.5747 GB, free: 4.102 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008657/0.6812, allocations: 306.9 kB / 0.575 GB, free: 3.801 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003873/0.6851, allocations: 2.002 MB / 0.5769 GB, free: 1.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.6856, allocations: 205.7 kB / 0.5771 GB, free: 1.453 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002149/0.6859, allocations: 93.41 kB / 0.5772 GB, free: 1.355 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.6859, allocations: 4 kB / 0.5772 GB, free: 1.352 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.686, allocations: 42.44 kB / 0.5773 GB, free: 1.301 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 2.975e-06/0.686, allocations: 0 / 0.5773 GB, free: 1.301 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.001876/0.6879, allocations: 0.7386 MB / 0.578 GB, free: 0.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.168e-05/0.688, allocations: 106.8 kB / 0.5781 GB, free: 380 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.6885, allocations: 283.5 kB / 0.5784 GB, free: 92 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.602e-05/0.6886, allocations: 33.7 kB / 0.5784 GB, free: 52 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.6889, allocations: 318 kB / 0.5787 GB, free: 15.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.689, allocations: 82.83 kB / 0.5788 GB, free: 15.65 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.302e-05/0.689, allocations: 8 kB / 0.5788 GB, free: 15.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.6892, allocations: 334.8 kB / 0.5791 GB, free: 15.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.6894, allocations: 64 kB / 0.5792 GB, free: 15.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.6897, allocations: 209 kB / 0.5794 GB, free: 14.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.6908, allocations: 285.9 kB / 0.5796 GB, free: 14.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.6909, allocations: 0 / 0.5796 GB, free: 14.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001194/0.6921, allocations: 377.5 kB / 0.58 GB, free: 14.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.6921, allocations: 8 kB / 0.58 GB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.6922, allocations: 8 kB / 0.58 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005402/0.6927, allocations: 76.81 kB / 0.5801 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004763/0.6932, allocations: 67.89 kB / 0.5801 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003073/0.6963, allocations: 1.781 MB / 0.5819 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004557/0.6968, allocations: 27.89 kB / 0.5819 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.615e-05/0.6969, allocations: 12 kB / 0.5819 GB, free: 12.2 MB / 426.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.0001671/0.697, allocations: 132.8 kB / 0.5821 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.6972, allocations: 31.62 kB / 0.5821 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001301/0.6973, allocations: 39.09 kB / 0.5821 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.6973, allocations: 11.94 kB / 0.5821 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.6974, allocations: 4 kB / 0.5821 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.6974, allocations: 0 / 0.5821 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.6991, allocations: 0.7569 MB / 0.5829 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.932e-06/0.6991, allocations: 4.031 kB / 0.5829 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005197/0.6997, allocations: 47.91 kB / 0.5829 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001415/0.6998, allocations: 20.86 kB / 0.5829 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.6999, allocations: 8 kB / 0.583 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.7012, allocations: 1.28 MB / 0.5842 GB, free: 9.645 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.7012, allocations: 0 / 0.5842 GB, free: 9.645 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009715/0.7022, allocations: 0.5097 MB / 0.5847 GB, free: 9.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002064/0.7024, allocations: 120.7 kB / 0.5848 GB, free: 8.953 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.242e-05/0.7025, allocations: 4 kB / 0.5848 GB, free: 8.949 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003617/0.7029, allocations: 23.98 kB / 0.5848 GB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.028e-05/0.703, allocations: 11.98 kB / 0.5849 GB, free: 8.914 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/0.703, allocations: 8 kB / 0.5849 GB, free: 8.906 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000385/0.7034, allocations: 222.2 kB / 0.5851 GB, free: 8.688 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7034, allocations: 0 / 0.5851 GB, free: 8.688 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007645/0.7042, allocations: 92 kB / 0.5852 GB, free: 8.598 MB / 426.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.0002524/0.7045, allocations: 123.1 kB / 0.5853 GB, free: 8.469 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.7055, allocations: 350.8 kB / 0.5856 GB, free: 8.113 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.7056, allocations: 0 / 0.5856 GB, free: 8.113 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004384/0.706, allocations: 210.5 kB / 0.5858 GB, free: 7.895 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009351/0.707, allocations: 94.47 kB / 0.5859 GB, free: 7.805 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.7091, allocations: 0.724 MB / 0.5866 GB, free: 7.039 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005657/0.7097, allocations: 0.8584 MB / 0.5874 GB, free: 6.152 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.7099, allocations: 27.44 kB / 0.5875 GB, free: 6.125 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7099, allocations: 0 / 0.5875 GB, free: 6.125 MB / 426.7 MB Notification: Performance of Templates: time 0.01621/0.7261, allocations: 6.798 MB / 0.5941 GB, free: 15.32 MB / 442.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)