Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001742/0.001742, allocations: 179.4 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.566/1.566, allocations: 194.3 MB / 203.1 MB, free: 12.96 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001648/0.001648, allocations: 127.9 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1998/0.1998, allocations: 37.93 MB / 330.9 MB, free: 2.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.443e-05/2.434e-05, allocations: 4 kB / 390.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2795, allocations: 53.23 MB / 443.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4524/0.7319, allocations: 106.9 MB / 0.5377 GB, free: 45.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004294/0.7325, allocations: 94.16 kB / 0.5378 GB, free: 45.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06404/0.7965, allocations: 25.69 MB / 0.5628 GB, free: 41.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.7966, allocations: 0 / 0.5628 GB, free: 41.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.109e-05/0.7966, allocations: 11.72 kB / 0.5629 GB, free: 41.05 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.001827/0.7985, allocations: 0.9605 MB / 0.5638 GB, free: 40.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.7985, allocations: 11.72 kB / 0.5638 GB, free: 40.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004135/0.7989, allocations: 105.7 kB / 0.5639 GB, free: 40.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/0.8005, allocations: 0.8412 MB / 0.5647 GB, free: 39.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.218e-05/0.8006, allocations: 66.94 kB / 0.5648 GB, free: 39.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.124e-05/0.8007, allocations: 43.14 kB / 0.5648 GB, free: 39.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001066/0.8018, allocations: 0.676 MB / 0.5655 GB, free: 39.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.803, allocations: 0.8551 MB / 0.5663 GB, free: 39.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.803, allocations: 0 / 0.5663 GB, free: 39.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.127e-05/0.8031, allocations: 3.906 kB / 0.5663 GB, free: 39.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001001/0.8032, allocations: 53.48 kB / 0.5664 GB, free: 39.41 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004074/0.8073, allocations: 3.619 MB / 0.5699 GB, free: 37.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005189/0.8078, allocations: 403.2 kB / 0.5703 GB, free: 36.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00036/0.8082, allocations: 253.9 kB / 0.5705 GB, free: 36.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.314e-05/0.8082, allocations: 7.969 kB / 0.5705 GB, free: 36.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.8083, allocations: 38.7 kB / 0.5706 GB, free: 36.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.036e-06/0.8083, allocations: 0 / 0.5706 GB, free: 36.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.007004/0.8153, allocations: 3.203 MB / 0.5737 GB, free: 35.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.8154, allocations: 106.7 kB / 0.5738 GB, free: 35.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004218/0.8158, allocations: 375.8 kB / 0.5742 GB, free: 34.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.343e-05/0.8158, allocations: 29.61 kB / 0.5742 GB, free: 34.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.816, allocations: 396.1 kB / 0.5746 GB, free: 34.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.8162, allocations: 188.5 kB / 0.5748 GB, free: 34.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.248e-05/0.8162, allocations: 0 / 0.5748 GB, free: 34.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.693e-05/0.8163, allocations: 363 kB / 0.5751 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.8166, allocations: 261.8 kB / 0.5754 GB, free: 34.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003797/0.817, allocations: 494.8 kB / 0.5758 GB, free: 33.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004135/0.8174, allocations: 356.8 kB / 0.5762 GB, free: 33.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.8174, allocations: 0 / 0.5762 GB, free: 33.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0027/0.8202, allocations: 1.483 MB / 0.5776 GB, free: 33.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.8202, allocations: 7.875 kB / 0.5776 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.8202, allocations: 7.812 kB / 0.5776 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001465/0.8217, allocations: 486.3 kB / 0.5781 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.8221, allocations: 109.3 kB / 0.5782 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008594/0.8307, allocations: 9.53 MB / 0.5875 GB, free: 25.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007054/0.8314, allocations: 23.7 kB / 0.5875 GB, free: 25.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.285e-05/0.8315, allocations: 36.17 kB / 0.5876 GB, free: 25.98 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: machine.motor.psi_s[2]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] machine.inverter.Vloss:DUMMY_STATE(unit = "V" nominal = 1000.0 protected = true ) type: Real machine.inverter.vPhasor[2]:DUMMY_STATE() "desired {abs(v), phase(v)}" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (60): * Single equations (assignments): 55 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {3 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002247/0.8317, allocations: 127.8 kB / 0.5877 GB, free: 25.86 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002612/0.8344, allocations: 1.307 MB / 0.589 GB, free: 25.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.8345, allocations: 57.75 kB / 0.589 GB, free: 25.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00277/0.8373, allocations: 1.366 MB / 0.5903 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.8373, allocations: 11.69 kB / 0.5904 GB, free: 24.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.8373, allocations: 3.906 kB / 0.5904 GB, free: 24.53 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.8373, allocations: 7.938 kB / 0.5904 GB, free: 24.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004062/0.8414, allocations: 2.198 MB / 0.5925 GB, free: 23.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.8414, allocations: 0 / 0.5925 GB, free: 23.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/0.8417, allocations: 58.36 kB / 0.5926 GB, free: 23.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/0.8432, allocations: 479.3 kB / 0.593 GB, free: 23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.8432, allocations: 3.875 kB / 0.593 GB, free: 23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008214/0.8514, allocations: 9.288 MB / 0.6021 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/0.8515, allocations: 3.594 kB / 0.6021 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003272/0.8548, allocations: 1.936 MB / 0.604 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003045/0.8551, allocations: 188.4 kB / 0.6042 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.917e-05/0.8552, allocations: 4.062 kB / 0.6042 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003462/0.8555, allocations: 15.94 kB / 0.6042 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.8558, allocations: 56.7 kB / 0.6043 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/0.8558, allocations: 19.98 kB / 0.6043 GB, free: 12.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003978/0.8562, allocations: 275 kB / 0.6045 GB, free: 12.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8562, allocations: 0 / 0.6045 GB, free: 12.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001264/0.8575, allocations: 212 kB / 0.6047 GB, free: 12.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (machine.motor.phi_el,machine.motor.w_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 8,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003609/0.8611, allocations: 2.8 MB / 0.6075 GB, free: 9.328 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002285/0.8634, allocations: 1.372 MB / 0.6088 GB, free: 7.902 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.8634, allocations: 1.5 kB / 0.6088 GB, free: 7.902 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.8649, allocations: 1.038 MB / 0.6098 GB, free: 6.812 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007688/0.8656, allocations: 117.9 kB / 0.6099 GB, free: 6.699 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.8681, allocations: 1.409 MB / 0.6113 GB, free: 5.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005534/0.8687, allocations: 1.079 MB / 0.6124 GB, free: 4.121 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000345/0.8691, allocations: 97.17 kB / 0.6125 GB, free: 4.023 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003033/0.8694, allocations: 251.4 kB / 0.6127 GB, free: 3.781 MB / 378.7 MB Notification: Performance of SimCode: time 1.533e-06/0.8694, allocations: 0 / 0.6127 GB, free: 3.781 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04402/0.9134, allocations: 17.78 MB / 0.6301 GB, free: 1.98 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001888/0.9137, allocations: 141.2 kB / 0.6302 GB, free: 1.785 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.508/3.422, allocations: 0 / 0.6302 GB, free: 1.785 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)