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.002066/0.002066, allocations: 182 kB / 13.64 MB, free: 1.676 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.802/1.802, allocations: 194.3 MB / 208.4 MB, free: 6.715 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.001964/0.001964, allocations: 112.7 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1992/0.1992, allocations: 37.9 MB / 336.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.755e-05/4.768e-05, allocations: 7.984 kB / 397.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.355, allocations: 53.21 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5342/0.8893, allocations: 107.5 MB / 0.5453 GB, free: 29.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.8896, allocations: 102.8 kB / 0.5454 GB, free: 29.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06211/0.9517, allocations: 25.96 MB / 0.5708 GB, free: 23.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.9518, allocations: 0 / 0.5708 GB, free: 23.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.806e-05/0.9518, allocations: 23.3 kB / 0.5708 GB, free: 23.84 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.001628/0.9535, allocations: 0.9579 MB / 0.5717 GB, free: 23.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.9535, allocations: 7.875 kB / 0.5717 GB, free: 23.15 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000132/0.9537, allocations: 119.4 kB / 0.5718 GB, free: 23.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003679/0.954, allocations: 101.2 kB / 0.5719 GB, free: 23.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/0.9556, allocations: 0.8462 MB / 0.5728 GB, free: 22.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-05/0.9557, allocations: 83.59 kB / 0.5728 GB, free: 22.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.9558, allocations: 68.64 kB / 0.5729 GB, free: 22.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.9573, allocations: 0.9448 MB / 0.5738 GB, free: 22.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/0.9573, allocations: 3.875 kB / 0.5738 GB, free: 22.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.9574, allocations: 33.94 kB / 0.5739 GB, free: 22.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.464e-05/0.9575, allocations: 48.14 kB / 0.5739 GB, free: 22.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009857/0.9585, allocations: 0.7473 MB / 0.5746 GB, free: 22.15 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.003852/0.9623, allocations: 3.852 MB / 0.5784 GB, free: 19.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005465/0.9629, allocations: 414 kB / 0.5788 GB, free: 19.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003639/0.9633, allocations: 273.1 kB / 0.5791 GB, free: 19.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.9633, allocations: 4.531 kB / 0.5791 GB, free: 19.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.9634, allocations: 46.42 kB / 0.5791 GB, free: 19.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.394e-06/0.9634, allocations: 4 kB / 0.5791 GB, free: 19.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.008865/0.9722, allocations: 3.661 MB / 0.5827 GB, free: 17.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.9723, allocations: 119.1 kB / 0.5828 GB, free: 17.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005243/0.9728, allocations: 442.8 kB / 0.5832 GB, free: 17.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.9729, allocations: 40.88 kB / 0.5833 GB, free: 17.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.9731, allocations: 397.3 kB / 0.5836 GB, free: 17.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.9732, allocations: 195.7 kB / 0.5838 GB, free: 17.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.159e-05/0.9733, allocations: 10.56 kB / 0.5838 GB, free: 17.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.078e-05/0.9734, allocations: 370 kB / 0.5842 GB, free: 16.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.9737, allocations: 278.6 kB / 0.5845 GB, free: 16.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004297/0.9742, allocations: 499.8 kB / 0.5849 GB, free: 16.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004632/0.9747, allocations: 362.2 kB / 0.5853 GB, free: 16.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.9747, allocations: 3.953 kB / 0.5853 GB, free: 16.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002862/0.9775, allocations: 1.561 MB / 0.5868 GB, free: 15.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.9776, allocations: 9.469 kB / 0.5868 GB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.9776, allocations: 7.625 kB / 0.5868 GB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001505/0.9791, allocations: 0.4931 MB / 0.5873 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/0.9795, allocations: 108.9 kB / 0.5874 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008856/0.9883, allocations: 9.944 MB / 0.5971 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.9889, allocations: 41.91 kB / 0.5972 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.161e-05/0.9889, allocations: 34.42 kB / 0.5972 GB, free: 8.164 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 54 * 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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.9891, allocations: 146.7 kB / 0.5973 GB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.9892, allocations: 58.5 kB / 0.5974 GB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.992, allocations: 1.433 MB / 0.5988 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.9921, allocations: 3.812 kB / 0.5988 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.9921, allocations: 7.625 kB / 0.5988 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.9921, allocations: 3.984 kB / 0.5988 GB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004151/0.9963, allocations: 2.354 MB / 0.6011 GB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.9963, allocations: 3.969 kB / 0.6011 GB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.9966, allocations: 53.73 kB / 0.6012 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/0.998, allocations: 493.6 kB / 0.6016 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.065e-05/0.9981, allocations: 14.34 kB / 0.6016 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008573/1.007, allocations: 9.701 MB / 0.6111 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/1.007, allocations: 112 / 0.6111 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003814/1.011, allocations: 2.002 MB / 0.6131 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004211/1.011, allocations: 187.1 kB / 0.6132 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/1.011, allocations: 15.69 kB / 0.6133 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004385/1.012, allocations: 19.64 kB / 0.6133 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/1.012, allocations: 59.38 kB / 0.6133 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.242e-05/1.012, allocations: 19.28 kB / 0.6134 GB, free: 12.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005672/1.012, allocations: 349.4 kB / 0.6137 GB, free: 12.06 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.012, allocations: 0 / 0.6137 GB, free: 12.06 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001352/1.014, allocations: 237.8 kB / 0.6139 GB, free: 12.03 MB / 394.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.004418/1.018, allocations: 2.864 MB / 0.6167 GB, free: 9.617 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002813/1.021, allocations: 1.454 MB / 0.6181 GB, free: 8.098 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/1.021, allocations: 0 / 0.6181 GB, free: 8.098 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/1.023, allocations: 1.098 MB / 0.6192 GB, free: 6.938 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009932/1.024, allocations: 150.2 kB / 0.6193 GB, free: 6.793 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/1.028, allocations: 1.49 MB / 0.6208 GB, free: 5.246 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000965/1.029, allocations: 1.068 MB / 0.6218 GB, free: 4.152 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004773/1.029, allocations: 101.7 kB / 0.6219 GB, free: 4.051 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003842/1.029, allocations: 255.3 kB / 0.6222 GB, free: 3.801 MB / 394.7 MB Notification: Performance of SimCode: time 1.453e-06/1.03, allocations: 0 / 0.6222 GB, free: 3.801 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05015/1.08, allocations: 20.45 MB / 0.6422 GB, free: 15.32 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002239/1.08, allocations: 197.5 kB / 0.6423 GB, free: 15.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.661/3.741, allocations: 0 / 0.6423 GB, free: 15.08 MB / 426.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)