Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.002206/0.002206, allocations: 181 kB / 15.76 MB, free: 6.336 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.025/2.025, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001711/0.001711, allocations: 90.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2673/0.2673, allocations: 38.05 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006363/0.0006363, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1138, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5162/0.6301, allocations: 112.8 MB / 0.5781 GB, free: 2.695 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000329/0.6305, allocations: 98.02 kB / 0.5782 GB, free: 2.645 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1137/0.7442, allocations: 26.02 MB / 0.6036 GB, free: 12.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.7442, allocations: 0 / 0.6036 GB, free: 12.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.274e-05/0.7443, allocations: 20 kB / 0.6036 GB, free: 12.39 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.00315/0.7475, allocations: 1.029 MB / 0.6046 GB, free: 11.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.7476, allocations: 8.031 kB / 0.6046 GB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002795/0.7479, allocations: 121.7 kB / 0.6047 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006423/0.7485, allocations: 98.95 kB / 0.6048 GB, free: 11.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003141/0.7517, allocations: 0.8662 MB / 0.6057 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.7518, allocations: 76.2 kB / 0.6057 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002137/0.7521, allocations: 78.95 kB / 0.6058 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002403/0.7545, allocations: 0.9622 MB / 0.6068 GB, free: 9.609 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.184e-05/0.7546, allocations: 3.938 kB / 0.6068 GB, free: 9.605 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/0.7547, allocations: 27.25 kB / 0.6068 GB, free: 9.598 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001712/0.7549, allocations: 55.16 kB / 0.6068 GB, free: 9.551 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/0.757, allocations: 0.7747 MB / 0.6076 GB, free: 9.039 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.007867/0.7649, allocations: 3.85 MB / 0.6114 GB, free: 5.672 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.7662, allocations: 442.2 kB / 0.6118 GB, free: 5.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.893e-05/0.7663, allocations: 4.594 kB / 0.6118 GB, free: 5.336 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.7663, allocations: 44.69 kB / 0.6118 GB, free: 5.289 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 5.26e-06/0.7663, allocations: 0 / 0.6118 GB, free: 5.289 MB / 410.7 MB Notification: Performance of matching and sorting (n=55): time 0.01951/0.7859, allocations: 4.041 MB / 0.6158 GB, free: 1.836 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.231e-05/0.786, allocations: 111.2 kB / 0.6159 GB, free: 1.703 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009037/0.7869, allocations: 454.3 kB / 0.6163 GB, free: 1.352 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.787, allocations: 33.3 kB / 0.6163 GB, free: 1.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003341/0.7874, allocations: 435.9 kB / 0.6168 GB, free: 0.9688 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002539/0.7876, allocations: 195.6 kB / 0.6169 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.002e-05/0.7877, allocations: 11.44 kB / 0.617 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.7879, allocations: 346.1 kB / 0.6173 GB, free: 476 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007992/0.7887, allocations: 280.8 kB / 0.6176 GB, free: 296 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009766/0.7897, allocations: 0.5025 MB / 0.618 GB, free: 15.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009529/0.7907, allocations: 369.9 kB / 0.6184 GB, free: 15.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.7907, allocations: 4 kB / 0.6184 GB, free: 15.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00574/0.7964, allocations: 1.539 MB / 0.6199 GB, free: 14.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.7965, allocations: 12 kB / 0.6199 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/0.7965, allocations: 4 kB / 0.6199 GB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002917/0.7995, allocations: 498.1 kB / 0.6204 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008575/0.8004, allocations: 111.2 kB / 0.6205 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01813/0.8185, allocations: 10.12 MB / 0.6304 GB, free: 3.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009194/0.8195, allocations: 39.95 kB / 0.6304 GB, free: 3.691 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.488e-05/0.8196, allocations: 28 kB / 0.6305 GB, free: 3.664 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (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%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007774/0.8204, allocations: 305.6 kB / 0.6307 GB, free: 3.355 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.8206, allocations: 55.34 kB / 0.6308 GB, free: 3.301 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00585/0.8264, allocations: 1.429 MB / 0.6322 GB, free: 1.797 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/0.8265, allocations: 11.98 kB / 0.6322 GB, free: 1.785 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.8265, allocations: 4 kB / 0.6322 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/0.8265, allocations: 0 / 0.6322 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007654/0.8342, allocations: 2.347 MB / 0.6345 GB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.8342, allocations: 0 / 0.6345 GB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006056/0.8349, allocations: 63.89 kB / 0.6346 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002717/0.8376, allocations: 475.9 kB / 0.635 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.444e-05/0.8377, allocations: 15.94 kB / 0.635 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01721/0.8549, allocations: 9.847 MB / 0.6446 GB, free: 4.211 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.8549, allocations: 288 / 0.6446 GB, free: 4.211 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006516/0.8615, allocations: 2.049 MB / 0.6466 GB, free: 2.031 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004585/0.862, allocations: 196.2 kB / 0.6468 GB, free: 1.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.8621, allocations: 12 kB / 0.6468 GB, free: 1.809 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000627/0.8627, allocations: 19.98 kB / 0.6469 GB, free: 1.789 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002648/0.863, allocations: 60.53 kB / 0.6469 GB, free: 1.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-05/0.8631, allocations: 16 kB / 0.6469 GB, free: 1.715 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006918/0.8638, allocations: 350.8 kB / 0.6473 GB, free: 1.375 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8638, allocations: 7.875 kB / 0.6473 GB, free: 1.367 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001444/0.8653, allocations: 244 kB / 0.6475 GB, free: 1.129 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * 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 (30): * Single equations (assignments): 24 * 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,88.9%) 8,(1,100.0%) 1,(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.007252/0.8725, allocations: 2.972 MB / 0.6504 GB, free: 14.03 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004152/0.8767, allocations: 1.482 MB / 0.6519 GB, free: 12.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.8767, allocations: 4.25 kB / 0.6519 GB, free: 12.47 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003089/0.8798, allocations: 1.122 MB / 0.653 GB, free: 11.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.8812, allocations: 163.2 kB / 0.6531 GB, free: 11.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01679/0.898, allocations: 10.23 MB / 0.6631 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.8991, allocations: 1.068 MB / 0.6641 GB, free: 15.51 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005538/0.8996, allocations: 259.3 kB / 0.6644 GB, free: 15.25 MB / 474.7 MB Notification: Performance of SimCode: time 9.62e-07/0.8997, allocations: 0 / 0.6644 GB, free: 15.25 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.294/4.194, allocations: 29.95 MB / 0.6936 GB, free: 1.254 MB / 490.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)