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.001184/0.001184, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.255/1.255, allocations: 194.5 MB / 211.6 MB, free: 3.051 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.001606/0.001606, allocations: 110.6 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1588/0.1588, allocations: 38 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003503, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09882/0.09919, allocations: 53.23 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4041/0.5034, allocations: 107.6 MB / 0.5515 GB, free: 3.766 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/0.5037, allocations: 96.14 kB / 0.5516 GB, free: 3.715 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06846/0.5722, allocations: 25.97 MB / 0.577 GB, free: 13.54 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5723, allocations: 3.938 kB / 0.577 GB, free: 13.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.362e-05/0.5723, allocations: 20 kB / 0.577 GB, free: 13.51 MB / 394.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.002035/0.5744, allocations: 1.024 MB / 0.578 GB, free: 12.49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.5744, allocations: 12.02 kB / 0.578 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000156/0.5746, allocations: 121.9 kB / 0.5781 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004053/0.575, allocations: 106.9 kB / 0.5782 GB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001893/0.5769, allocations: 0.8587 MB / 0.579 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.577, allocations: 87.95 kB / 0.5791 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.5772, allocations: 64 kB / 0.5792 GB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.5786, allocations: 0.9566 MB / 0.5801 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.5786, allocations: 7.906 kB / 0.5801 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-05/0.5787, allocations: 34.69 kB / 0.5802 GB, free: 10.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-05/0.5788, allocations: 53.22 kB / 0.5802 GB, free: 10.67 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.58, allocations: 0.7774 MB / 0.581 GB, free: 10.16 MB / 394.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.004979/0.5849, allocations: 3.842 MB / 0.5847 GB, free: 6.789 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007283/0.5857, allocations: 443.1 kB / 0.5852 GB, free: 6.457 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.5858, allocations: 11.42 kB / 0.5852 GB, free: 6.449 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.5858, allocations: 38.44 kB / 0.5852 GB, free: 6.406 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.504e-06/0.5858, allocations: 0 / 0.5852 GB, free: 6.406 MB / 394.7 MB Notification: Performance of matching and sorting (n=55): time 0.01146/0.5973, allocations: 4.094 MB / 0.5892 GB, free: 2.898 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/0.5974, allocations: 122.4 kB / 0.5893 GB, free: 2.758 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006746/0.5981, allocations: 445.7 kB / 0.5897 GB, free: 2.414 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.5981, allocations: 32.45 kB / 0.5898 GB, free: 2.383 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002947/0.5984, allocations: 400.6 kB / 0.5902 GB, free: 2.078 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.5986, allocations: 192.5 kB / 0.5903 GB, free: 1.914 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.402e-05/0.5987, allocations: 9.188 kB / 0.5903 GB, free: 1.914 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.5989, allocations: 376.5 kB / 0.5907 GB, free: 1.562 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004397/0.5993, allocations: 287.9 kB / 0.591 GB, free: 1.383 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005715/0.5999, allocations: 0.4952 MB / 0.5915 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005515/0.6004, allocations: 378.2 kB / 0.5918 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.6005, allocations: 4 kB / 0.5918 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003337/0.6038, allocations: 1.574 MB / 0.5934 GB, free: 15.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.6038, allocations: 8.25 kB / 0.5934 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.6039, allocations: 12 kB / 0.5934 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/0.6055, allocations: 490.8 kB / 0.5939 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004341/0.606, allocations: 111.3 kB / 0.594 GB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/0.6169, allocations: 10.11 MB / 0.6038 GB, free: 4.219 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006216/0.6176, allocations: 35.89 kB / 0.6039 GB, free: 4.184 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.6176, allocations: 32 kB / 0.6039 GB, free: 4.152 MB / 410.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.0005465/0.6182, allocations: 309.6 kB / 0.6042 GB, free: 3.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.6183, allocations: 67.2 kB / 0.6043 GB, free: 3.773 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003174/0.6215, allocations: 1.418 MB / 0.6056 GB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.6215, allocations: 11.95 kB / 0.6056 GB, free: 2.266 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.6215, allocations: 8.109 kB / 0.6057 GB, free: 2.258 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.6216, allocations: 7.922 kB / 0.6057 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004457/0.626, allocations: 2.347 MB / 0.608 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.626, allocations: 4.062 kB / 0.608 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003337/0.6264, allocations: 63.84 kB / 0.608 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001527/0.6279, allocations: 483.3 kB / 0.6085 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-05/0.628, allocations: 15.94 kB / 0.6085 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.6382, allocations: 9.849 MB / 0.6181 GB, free: 4.676 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.6383, allocations: 7.953 kB / 0.6181 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003838/0.6421, allocations: 2.003 MB / 0.6201 GB, free: 2.543 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004136/0.6426, allocations: 192.3 kB / 0.6203 GB, free: 2.336 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.282e-05/0.6427, allocations: 12 kB / 0.6203 GB, free: 2.324 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003761/0.643, allocations: 23.92 kB / 0.6203 GB, free: 2.301 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.6432, allocations: 60.53 kB / 0.6204 GB, free: 2.242 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.919e-05/0.6433, allocations: 16 kB / 0.6204 GB, free: 2.227 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004765/0.6438, allocations: 358.8 kB / 0.6207 GB, free: 1.879 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6438, allocations: 0 / 0.6207 GB, free: 1.879 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001212/0.645, allocations: 240 kB / 0.6209 GB, free: 1.645 MB / 426.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 () * 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,100.0%) 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.004356/0.6494, allocations: 2.867 MB / 0.6237 GB, free: 14.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.6521, allocations: 1.478 MB / 0.6252 GB, free: 13.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.6521, allocations: 0 / 0.6252 GB, free: 13.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/0.654, allocations: 1.122 MB / 0.6263 GB, free: 11.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008764/0.6549, allocations: 162.1 kB / 0.6264 GB, free: 11.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/0.6653, allocations: 10.17 MB / 0.6364 GB, free: 1.312 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007783/0.6661, allocations: 1.072 MB / 0.6374 GB, free: 216 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004648/0.6666, allocations: 97.69 kB / 0.6375 GB, free: 116 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003452/0.6669, allocations: 259.4 kB / 0.6378 GB, free: 15.86 MB / 458.7 MB Notification: Performance of SimCode: time 1.492e-06/0.667, allocations: 3.938 kB / 0.6378 GB, free: 15.85 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03948/0.7064, allocations: 20.35 MB / 0.6576 GB, free: 11.5 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/0.7067, allocations: 211.7 kB / 0.6578 GB, free: 11.25 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.434/3.14, allocations: 3.938 kB / 0.6578 GB, free: 11.25 MB / 474.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)