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.001537/0.001537, allocations: 185.3 kB / 13.19 MB, free: 2.125 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.005/2.005, allocations: 205.2 MB / 218.9 MB, free: 9.191 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.001566/0.001566, allocations: 96.44 kB / 267.1 MB, free: 9.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2721/0.2721, allocations: 37.96 MB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.304e-05/4.319e-05, allocations: 4 kB / 416.9 MB, free: 41.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 56.31 MB / 473.2 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5259/0.6275, allocations: 112.7 MB / 0.5722 GB, free: 6.914 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003407/0.6279, allocations: 95.94 kB / 0.5723 GB, free: 6.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1195/0.7474, allocations: 26.02 MB / 0.5977 GB, free: 12.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.7475, allocations: 0 / 0.5977 GB, free: 12.48 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.504e-05/0.7476, allocations: 16 kB / 0.5977 GB, free: 12.46 MB / 442.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.003326/0.7509, allocations: 0.9624 MB / 0.5987 GB, free: 11.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.751, allocations: 12.03 kB / 0.5987 GB, free: 11.45 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000391/0.7514, allocations: 118.5 kB / 0.5988 GB, free: 11.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007588/0.7522, allocations: 110.9 kB / 0.5989 GB, free: 11.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003298/0.7555, allocations: 0.8478 MB / 0.5997 GB, free: 10.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.7557, allocations: 79.69 kB / 0.5998 GB, free: 10.24 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002671/0.756, allocations: 71.98 kB / 0.5999 GB, free: 10.17 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/0.7585, allocations: 0.937 MB / 0.6008 GB, free: 9.172 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.667e-05/0.7586, allocations: 7.938 kB / 0.6008 GB, free: 9.164 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.7587, allocations: 28 kB / 0.6008 GB, free: 9.137 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/0.7589, allocations: 53.28 kB / 0.6009 GB, free: 9.086 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002145/0.7611, allocations: 0.7469 MB / 0.6016 GB, free: 8.34 MB / 442.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.008792/0.7699, allocations: 3.843 MB / 0.6053 GB, free: 4.281 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.7711, allocations: 424.9 kB / 0.6057 GB, free: 3.84 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007422/0.7718, allocations: 275.1 kB / 0.606 GB, free: 3.562 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.586e-05/0.7719, allocations: 7.859 kB / 0.606 GB, free: 3.555 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.772, allocations: 34.56 kB / 0.606 GB, free: 3.512 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 3.186e-06/0.772, allocations: 0 / 0.606 GB, free: 3.512 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.0175/0.7895, allocations: 3.588 MB / 0.6096 GB, free: 15.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.123e-05/0.7896, allocations: 111.2 kB / 0.6097 GB, free: 15.62 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009083/0.7905, allocations: 444.5 kB / 0.6101 GB, free: 15.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001253/0.7907, allocations: 37.7 kB / 0.6101 GB, free: 15.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003594/0.7911, allocations: 437.5 kB / 0.6105 GB, free: 14.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/0.7913, allocations: 193.2 kB / 0.6107 GB, free: 14.51 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.279e-05/0.7914, allocations: 16 kB / 0.6107 GB, free: 14.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.7916, allocations: 342.8 kB / 0.6111 GB, free: 14.15 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007293/0.7923, allocations: 269.5 kB / 0.6113 GB, free: 13.88 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000915/0.7933, allocations: 0.4895 MB / 0.6118 GB, free: 13.29 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009583/0.7942, allocations: 361.4 kB / 0.6121 GB, free: 12.94 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.473e-06/0.7943, allocations: 8 kB / 0.6121 GB, free: 12.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.005785/0.8001, allocations: 1.526 MB / 0.6136 GB, free: 11.33 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.8002, allocations: 8 kB / 0.6136 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/0.8002, allocations: 11.94 kB / 0.6137 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003038/0.8032, allocations: 496.1 kB / 0.6141 GB, free: 10.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008296/0.8041, allocations: 119.8 kB / 0.6142 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01782/0.8219, allocations: 9.965 MB / 0.624 GB, free: 52 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009266/0.8229, allocations: 27.89 kB / 0.624 GB, free: 24 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.8231, allocations: 36.05 kB / 0.624 GB, free: 15.98 MB / 474.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.0002522/0.8233, allocations: 154.6 kB / 0.6242 GB, free: 15.83 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.8235, allocations: 59.25 kB / 0.6242 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005568/0.8291, allocations: 1.421 MB / 0.6256 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/0.8292, allocations: 12 kB / 0.6256 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-05/0.8292, allocations: 4.109 kB / 0.6256 GB, free: 14.26 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/0.8292, allocations: 3.938 kB / 0.6256 GB, free: 14.26 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007861/0.8371, allocations: 2.347 MB / 0.6279 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.728e-05/0.8372, allocations: 8 kB / 0.6279 GB, free: 11.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006304/0.8378, allocations: 51.91 kB / 0.628 GB, free: 11.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002775/0.8406, allocations: 492 kB / 0.6285 GB, free: 11.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.8408, allocations: 12 kB / 0.6285 GB, free: 11.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01679/0.8576, allocations: 9.698 MB / 0.638 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.8576, allocations: 0 / 0.638 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3698/1.227, allocations: 2.015 MB / 0.6399 GB, free: 133.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005425/1.228, allocations: 188.1 kB / 0.6401 GB, free: 133.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/1.228, allocations: 17.05 kB / 0.6401 GB, free: 133.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007057/1.229, allocations: 19.61 kB / 0.6401 GB, free: 133.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002968/1.229, allocations: 59.92 kB / 0.6402 GB, free: 133.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-05/1.229, allocations: 18.12 kB / 0.6402 GB, free: 133.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009152/1.23, allocations: 346.3 kB / 0.6405 GB, free: 133.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.23, allocations: 1.188 kB / 0.6405 GB, free: 133.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002672/1.233, allocations: 239.6 kB / 0.6408 GB, free: 133.6 MB / 474.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 () * 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,88.9%) 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.01078/1.244, allocations: 2.973 MB / 0.6437 GB, free: 132.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00602/1.25, allocations: 1.449 MB / 0.6451 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.25, allocations: 3.781 kB / 0.6451 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004523/1.255, allocations: 1.098 MB / 0.6462 GB, free: 131 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/1.257, allocations: 154.2 kB / 0.6463 GB, free: 131 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007118/1.264, allocations: 1.547 MB / 0.6478 GB, free: 130.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001388/1.265, allocations: 1.069 MB / 0.6489 GB, free: 129.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007991/1.266, allocations: 257.4 kB / 0.6491 GB, free: 129.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.783e-06/1.266, allocations: 2.156 kB / 0.6491 GB, free: 129.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.29/4.556, allocations: 29.98 MB / 0.6784 GB, free: 125.2 MB / 474.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)